El Capitan升级后无法启动ipython

时间:2015-10-21 16:38:38

标签: ipython canopy osx-elcapitan

有没有人知道如何通过升级到El Capitan撤消对路径和权限的更改。具体来说,似乎OS X现在使用系统python而不是我的Canopy安装。

看起来不错:

Michaels-Mac-mini:~ mellis$ which python
/Users/mellis/Library/Enthought/Canopy_64bit/User/bin/python

Michaels-Mac-mini:~ mellis$ which ipython
/Users/mellis/bin/ipython

但是尝试启动ipython失败了:

Michaels-Mac-mini:~ mellis$ ipython
Traceback (most recent call last):
  File "/Users/mellis/bin/ipython", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/pyth on/pkg_resources.py", line 2793, in <module>
working_set.require(__requires__)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 673, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 576, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: ipython==0.11

1 个答案:

答案 0 :(得分:1)

我安装的Canopy软件包(包括ipython)的完整更新似乎解决了这个问题。