[使用 Mac OSX 10.6.8]
我正在尝试将networkx安装到python 2.7,但它一直在尝试将其安装到2.6版(当我升级到2.7时已卸载)
我为未指定的版本尝试了 easy_install,它得到了 2.6 版本
命令:
easy_install networkx
输出
Searching for networkx
Best match: networkx 1.7
Processing networkx-1.7-py2.6.egg
Removing networkx 1.7 from easy-install.pth file
Adding networkx 1.7 to easy-install.pth file
Using /Library/Python/2.6/site-packages/networkx-1.7-py2.6.egg
Processing dependencies for networkx
Finished processing dependencies for networkx
smms-baldrick:20121205_coif kirstin$
我尝试下载python 2.7版本并直接安装它,但它仍然去了2.6的库
命令:
easy_install http://networkx.lanl.gov/download/networkx/networkx-1.7-py2.7.egg
输出
Downloading http://networkx.lanl.gov/download/networkx/networkx-1.7-py2.7.egg
Processing networkx-1.7-py2.7.egg
removing '/Library/Python/2.6/site-packages/networkx-1.7-py2.7.egg' (and everything under it)
creating /Library/Python/2.6/site-packages/networkx-1.7-py2.7.egg
Extracting networkx-1.7-py2.7.egg to /Library/Python/2.6/site-packages
networkx 1.7 is already the active version in easy-install.pth
Installed /Library/Python/2.6/site-packages/networkx-1.7-py2.7.egg
Processing dependencies for networkx==1.7
Finished processing dependencies for networkx==1.7