Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
How to Install CKAN 1.8 on Windows
It is possible to run CKAN on Windows, both version 1.8 and 2.0
If you are mandated by your place of work to use Windows, the good news is that CKAN 1.8 runs very well on Windows. Running CKAN inside Eclipse with PyDev makes for a responsive and effective development environment that is easy to get up and running with.
2.0 will also run, but requires some subtle "hacks" that may not be worth patching until the core codebase settles down a bit in the near future.
The following instructions have only been tested on Windows Vista, but should work on all versions.
Install Python Environment.
- Install Python 2.7.3 for Windows: http://www.python.org/getit/releases/2.7.3
- Install Setuptools Win32-py27 for Windows: http://pypi.python.org/pypi/setuptools#windows
- Add c:\Python27\Scripts to the Windows path
- Open a new DOS prompt and run easy_install pip
Setup up a PostgreSQL test database:
- Install the latest version of PostgreSQL for windows
- Run PGAdmin III (Start, Programs, Postgres 9.1, PGAdmin III)
- click in "Object browser" on Postgres 9.1 and enter password previously set.
- Right click on "Login roles" and select "New Login Role..."
- Role name is "ckanuser", set a password, default privileges. Click Ok.
- Right click on "Databases" and select "New Database..."
- Name is "ckantest" and Owner is "ckanuser". Encoding should be UTF8. Click Ok.
Ensure that you can run CKAN 1.8 on Windows with the bare necessities.
- Install the Windows distribution of psycopg2 for Python 2.7: http://www.stickpeople.com/projects/python/win-psycopg/ This is the Python library for PostgreSQL
- Pip install virtualenv
- Optional: Install virtualenvwrapper-win https://github.com/davidmarble/virtualenvwrapper-win
- Optional: Do not place your source code inside your virtual environments, or you'll "de-virtualize" it. Instead, create eg a Sources folder in home directory put pull all your git code there. Virtualenvwrapper will make it easy for you to work with source code anywhere so your don't mix your development code and your virtualenvs
- Clone the main branch into your Sources directory
- mkvirtualenv --system-site-packages ckan1.8env
- git clone
- Have a look at the tags with git tag -l and find 1.8 (1.8.1 looks to be identical so just grab 1.8)
- Optional: Depending on your workflow, you may like to create your own working branch with git checkout -b ckan-1.8-peder
- Activate your virtual environment.
- While in source folder run pip install -r pip-requirements.txt
- If you are behind proxy and e git+https://firstname.lastname@example.org#egg=vdm gives you trouble, you may have to install it manually.
- Now install ckan with > python setup.py develop or install from your ckan source folder.
Follow the instructions from the CKAN Administrators Manual to setup the database and run CKAN with Paste Script