1

关于这意味着什么的任何想法?我不知道这是否有帮助,但似乎我尝试 pip install 的大多数东西都没有正确安装,并且出现错误。

BenjaminsMacBook:~ OwlFace$ pip install pygtk
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 2603, in <module>
    working_set.require(__requires__)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
pkg_resources.DistributionNotFound: pip==1.4.1
BenjaminsMacBook:~ OwlFace$ 
4

3 回答 3

0

pygtk 安装脚本找不到 pip 1.4.1 你必须安装 pip 1.4.1

于 2013-10-27T05:40:16.660 回答
0

你可以在这里查看我的答案。基本上,要修复它,请运行:

easy_install --upgrade pip
于 2013-11-29T19:13:33.183 回答
-1

有 pip 的依赖关系required version = 1.4.1

$ which pip
/usr/local/bin/pip

如果这里没有输出可能你没有安装 pip

$ pip --version
pip 1.4.1 from /usr/local/lib/python2.7/dist-packages (python 2.7)

如果您的版本不是 1.4.1,请更新 pip

您的错误表明您已安装 pip,因此请检查版本

    BenjaminsMacBook:~ OwlFace$ pip install pygtk
    Traceback (most recent call last):
===>    File "/usr/local/bin/pip", line 5, in <module>
        from pkg_resources import load_entry_point

对于 pip1.4.1,请访问:https ://pypi.python.org/pypi/pip/

于 2013-10-27T05:58:20.070 回答