我想安装3rd库-> 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/
Run Code Online (Sandbox Code Playgroud)
系统信息:
# uname -a
Linux instance-says 4.9.0-6-amd64 #1 SMP Debian 4.9.82-1+deb9u3 (2018-03-02) x86_64 GNU/Linux
Run Code Online (Sandbox Code Playgroud)
python和pip版本信息?
# python -V
Python 2.7.13
# pip --version
pip …Run Code Online (Sandbox Code Playgroud)