当我使用“get-pip.py”安装pip时出现“AttributeError”

时间:2015-04-06 14:04:02

标签: python linux pip

我尝试在新计算机上安装pip-install。我使用'python get-pip.py'并报告错误“AttributeError:'module'对象没有属性'packaging'”。它看起来像setuptools有问题。怎么解决这个问题?

  1. python版本:2.7
  2. 系统:ubuntu 14.10

  3. Traceback (most recent call last):
      File "get-pip.py", line 20206, in <module>
        main() 
      File "get-pip.py", line 154, in main
        bootstrap(tmpdir=tmpdir)
      File "get-pip.py", line 112, in bootstrap
        import setuptools  # noqa
      File "build/bdist.linux-i686/egg/setuptools/__init__.py", line 11, in <module>
      File "build/bdist.linux-i686/egg/setuptools/extension.py", line 8, in <module> 
      File "build/bdist.linux-i686/egg/setuptools/dist.py", line 21, in <module>
    AttributeError: 'module' object has no attribute 'packaging'
    

0 个答案:

没有答案