我要安装第三个库->bson。 但是下一个错误,谁知道为什么?在
# pip install bson
Collecting bson
Using cached bson-0.5.2.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-cP7YdW/bson/setup.py", line 8, in <module>
from pip import get_installed_distributions
ImportError: cannot import name get_installed_distributions
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-cP7YdW/bson/
系统信息:
^{pr2}$python和pip版本信息:
# python -V
Python 2.7.13
# pip --version
pip 10.0.0 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)
请尝试
pip install upgrade setuptools
并再次运行。在简易修复:
许多作者都没有受到警告。最后在版本10中,他们重新构造了代码。在
要继续对导入
pip
的包使用pip
,您需要pip
版本9:注:已经有一个bug report。在
相关问题 更多 >
编程相关推荐