On 29 August 2011 11:50, Elisha Rosensweig <[email protected]> wrote:
> Hi All, > > I'm trying to use easy_install on my Mac to get the Python networx package. > On my machine I have installed version 2.5 AND 2.6 of Python. However, wehn > I try to install this package, I get: > > Best match: networkx 1.5 > Downloading http://networkx.lanl.gov/download/networkx/networkx-1.5.zip > Processing networkx-1.5.zip > Running networkx-1.5/setup.py -q bdist_egg --dist-dir > /var/folders/RF/RFpRZ44UEoO77eeJ7t1eOE+++TM/-Tmp-/easy_install-mTZw0S/networkx-1.5/egg-dist-tmp-TGWeRV > *NetworkX requires Python version 2.6 or later (2.5 detected).* > error: Setup script exited with -1 > > > > this, despite the fact that my default python is version 2.6: > > python > Python *2.6.2* (r262:71600, Apr 16 2009, 09:17:39) > [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin > > > > Any ideas how to solve this? > > Offhand, this seems to imply that you have easy_install installed on your Python 2.5 installation, and not on your 2.6 installation, or alternatively if you do have easy_install installed on both versions of python then perhaps somehow easy_install on python 2.5 is the first one found on your path. The solution is to a) ensure you have easy_install installed on Python 2.6 and b) Explicitly run that to ensure you're running the correct version (or, fix the paths if neccesary to ensure the correct version gets run without a path specified.) Regards Walter
_______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
