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