I'm trying to easy_install
a Python 2.5 package, but I've also got Python 3.1 installed, so I get a syntax error:
except pkg_resources.VersionConflict, e:
^
SyntaxError: invalid syntax
How do I tell easy_install
I want it to install (ReviewBoard, in this case) with Python 2.5?
Best Answer
The
easy_install
code installs the packages for whichever version of Python is being used to run it. It sounds like your system default version of Python is 3.1, so something like this should make it work the way you want:/path/to/python2.5 /path/to/easy_install ReviewBoard
Worst case you can edit the
easy_install
script and change the shebang to point to your 2.5 binary.