homebrew pip install jupyter error: ImportError: Entry point ('console_scripts', 'pip2') not found

*爱你&永不变心* 提交于 2019-12-11 02:48:08

问题


The end goal is to get jupyter notebook working on Mac OSX. Due to some conflicts with mac system python, I went the homebrew route:

brew install python

After homebrew is done installing python (and pip2)

export PATH=/usr/local/bin:/usr/local/sbin:$PATH is added to ~/.zshrc

source ~/.zshrc

Now running pip or pip2 gives the following error:

pip2 install 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

来源:https://stackoverflow.com/questions/45495954/homebrew-pip-install-jupyter-error-importerror-entry-point-console-scripts

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!