[Distutils] using pip to install an specific, older version
Chris Jerdonek
chris.jerdonek at gmail.com
Mon Apr 2 20:50:31 CEST 2012
Hi, I'm trying to use pip to install an older, specific version of a
package in PyPI (specifically simplejson v2.0.9):
http://pypi.python.org/pypi/simplejson/2.0.9
I've tried a few variations of the syntax below, but it always seems
to install the newest version (v2.5.0). I don't know if this is an
issue with simplejson, how I'm using pip, or something else. Based on
the below, can anyone say why it's not working and how to correct the
behavior?
Thanks,
--Chris
> sudo pip freeze -E /opt/local/bin/python
nose==1.1.2
> sudo pip install -E /opt/local/bin/python 'simplejson<2.1.0'
Downloading/unpacking simplejson<2.1.0
Running setup.py egg_info for package simplejson
Installing collected packages: simplejson
Running setup.py install for simplejson
File "/opt/local/lib/python2.4/site-packages/simplejson/encoder.py",
line 398
if (not _bigint_as_string or
^
SyntaxError: invalid syntax
Successfully installed simplejson
Cleaning up...
> sudo pip freeze -E /opt/local/bin/python
nose==1.1.2
simplejson==2.5.0
> python -V
Python 2.4.6
> which python
/opt/local/bin/python
> which pip
/usr/local/bin/pip
More information about the Distutils-SIG
mailing list