2017-08-03 21 views
3

brew install python後,以下出現:更新PIP和自制的setuptools不起作用

Pip and setuptools have been installed. To update them 
    pip2 install --upgrade pip setuptools 

運行PIP2升級從Python的2.7.13後安裝

pip2 install --upgrade pip setuptools 
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 
+1

[homebrew pip install jupyter error:ImportError:Entry point('console \ _scripts','pip2')not found](https://stackoverflow.com/questions/45495954/homebrew-pip-install- jupyter-錯誤導入錯誤 - 入口點控制檯的腳本) – phd

回答

13

我跑這個2.7.14使用自制軟件。我在GitHub上使用了這個問題中的建議:https://github.com/pyenv/pyenv/issues/739,它適用於我。我跑了實際的命令是:

/usr/local/Cellar/python/2.7.14/bin/python2 -m pip install --upgrade --force-reinstall pip

好運。