python pip安装bson错误

python pip安装bson错误,第1张

概述我想安装第3个库 – > BSON. 但接下来的错误,谁知道为什么? # pip install bsonCollecting bson Using cached bson-0.5.2.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): 我想安装第3个库 – > BSON.
但接下来的错误,谁知道为什么?

# pip install bsonCollecting 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/

系统信息:

# uname -alinux instance-says 4.9.0-6-amd64 #1 SMP Debian 4.9.82-1+deb9u3 (2018-03-02) x86_64 GNU/linux

python和pip版本信息:

# python -VPython 2.7.13# pip --versionpip 10.0.0 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)
解决方法 pip作者多年来警告不要 import pip.最后在版本10,他们重组了他们的代码.

要继续使用pip与导入pip的包,你需要pip版本9:

python -m pip install -U 'pip>=9,<10'

PS.已经有了bug report.

总结

以上是内存溢出为你收集整理的python pip安装bson错误全部内容,希望文章能够帮你解决python pip安装bson错误所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://www.54852.com/langs/1192025.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-06-03
下一篇2022-06-03

发表评论

登录后才能评论

评论列表(0条)

    保存