无需安装sudo就无法使用pip安装任何模块

时间:2016-03-03 13:42:41

标签: python pip

除非我使用sudo,否则我无法使用pip安装任何模块。以下是错误跟踪。

LAP:models$ pip install -U scikit-learn
Traceback (most recent call last):
  File "/usr/local/bin/pip", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/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: pip==8.0.3

我在线查看但到目前为止找不到任何解决方案。

0 个答案:

没有答案