Wednesday, March 01, 2006

Installing Pylons on Windows

If you are trying out Pylons on a Windows computer there are a few "gotchas". And if you are running Python 2.3 there are a few more. After posting requests for help to the friendly Pylons Group I have come up with the following quick instructions. I hope it helps those following my series of articles on Python Web Application Frameworks.

1. Create paster.bat somewhere on your path, containing this line:
python C:\Python24\Scripts\paster %1 %2 %3 %4 %5 %6 %7 %8 %9

2. Update setuptools:
python -U -D setuptools

3. If you are running Python 2.3, get the subprocess module here.

4. Ensure you have the version of Routes that works with Python 2.3:
easy_install -U -D Routes==dev

5. Install Pylons:
python Pylons==dev

Installation is done. To setup a test project, do this:
paster create --template=pylons testproject

If this works you are all set and can continue following the Beginners Tutorial


No comments:

Post a Comment