pip因AttributeError而失败:'module'对象没有属性'get_installed_distributions'

时间:2018-05-04 04:38:41

标签: python

我正在尝试启动安装了pip 10.0.1的服务器,但它引发了以下异常:

Traceback (most recent call last):
  File "davros_server.py", line 20, in <module>
    check_pip_modules()
  File "/home/kmjd67/davros_server/dependencies.py", line 68, in check_pip_modules
    _check_pip_modules(requirement_file)
  File "/home/kmjd67/davros_server/dependencies.py", line 76, in _check_pip_modules
    installed_dependencies = pip.get_installed_distributions()
AttributeError: 'module' object has no attribute 'get_installed_distributions'

0 个答案:

没有答案