我用conda和pip作为python包管理器运行Mavericks。我试图从终端(bash)运行ipython,但系统还没有。每当我尝试运行它时,我都会收到以下错误:
Traceback (most recent call last):
File "/usr/local/bin/ipython", line 5, in <module>
from pkg_resources import load_entry_point
File "build/bdist.macosx-10.9-x86_64/egg/pkg_resources.py", line 2716, in <module>
File "build/bdist.macosx-10.9-x86_64/egg/pkg_resources.py", line 685, in require
def __getstate__(self):
File "build/bdist.macosx-10.9-x86_64/egg/pkg_resources.py", line 588, in resolve
The `plugin_env` should be an ``Environment`` instance that contains
pkg_resources.DistributionNotFound: ipython==2.0.0-dev
我已尝试多次卸载并重新安装该软件,但它似乎无法正常工作。
如果您有任何建议,请告诉我。我试图让iJulia运转起来。
答案 0 :(得分:1)
我也遇到过类似的问题。这是我找到并为我工作的解决方案。
# refresh the ipython installation
rm -f /usr/local/bin/ipython && pip uninstall ipython -y && pip install ipython
# remove the warning startup
rm -rf ~/.ipython
希望它可以帮到你。
干杯,
RL