我遇到类似下面的问题:
Python pip broken after OS X 10.8 upgrade
安装ML后,我再也无法使用iPython,SciPy或Matplotlib了。我收到这个错误:
Shanes-MacBook-Pro:~ $ ipython
Traceback (most recent call last):
File "/usr/local/bin/ipython", line 5, in <module>
from pkg_resources import load_entry_point
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2603, in <module>
working_set.require(__requires__)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require
needed = self.resolve(parse_requirements(requirements))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve
raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: ipython==0.14.dev
我已尝试以下方法来修复它:
当我输入哪个python时,它表示它在/usr/bin/python
。
额外信息:
nside /Library/python/2.7/site-packages
里面有以下内容:
DateUtils-0.5.2-py2.7.egg
README
easy-install.pth
nose-1.1.2-py2.7.egg
pika-0.9.5-py2.7.egg
pyzmq-2.2.0.1-py2.7-macosx-10.8-intel.egg
tornado-2.3-py2.7.egg
所以通过这个ML升级,它删除了我的numpy,ipython等等。它不再像狮子那样安装在那里。我怎样才能找到它的安装位置,因为当我运行install_superpack shell脚本时它似乎正在工作。
答案 0 :(得分:0)
作为更新,我从未解决过这个具体问题。但是,我刚从Enthought下载了iPython,SciPy,Matplotlib等。我在这里回答了一些关于如何做到这一点的问题: