自制 pip 安装 jupyter 错误:ImportError:找不到入口点('console_scripts','pip2')

问题描述 投票:0回答:1

最终目标是让 Jupyter Notebook 在 Mac OSX 上运行。由于与mac系统python有些冲突,我走的是homebrew路线:

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
pip jupyter-notebook
1个回答
0
投票

这些都不适合我,在 mac m1 上我必须这样做

ln -s /opt/homebrew/share/jupyter/nbconvert ~/Library/Jupyter

© www.soinside.com 2019 - 2024. All rights reserved.