homebrew pip install jupyter错误:ImportError:找不到入口点('console_scripts','pip2')

时间:2017-08-03 23:13:30

标签: pip jupyter-notebook

最终目标是让jupyter笔记本在Mac OSX上运行。由于与mac系统python的一些冲突,我去了自制路线:

brew install python

自制软件完成后安装python(和pip2)

export PATH=/usr/local/bin:/usr/local/sbin:$PATH被添加到〜/ .zshrc

source ~/.zshrc

现在运行pip或pip2会出现以下错误:

  

pip2安装jupyter

Traceback (most recent call last):
  File "/usr/local/bin/pip2", line 11, in <module>
    load_entry_point('pip==9.0.1', 'console_scripts', 'pip2')()
  File "/Users/user1/Library/Python/2.7/lib/python/site-packages/pkg_resources/__init__.py", line 564, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/Users/user1/Library/Python/2.7/lib/python/site-packages/pkg_resources/__init__.py", line 2661, in load_entry_point
    raise ImportError("Entry point %r not found" % ((group, name),))
ImportError: Entry point ('console_scripts', 'pip2') not found

0 个答案:

没有答案