我正在使用一个干净的 Ubuntu 服务器实例,并想在我的 virtualenv 中安装一些 python 包。
我从命令“pip install -r requirements.txt”收到以下输出
Downloading/unpacking pymongo==2.5.2 (from -r requirements.txt (line 7))
Downloading pymongo-2.5.2.tar.gz (303kB): 303kB downloaded
Running setup.py egg_info for package pymongo
Traceback (most recent call last):
File "<string>", line 3, in <module>
ImportError: No module named setuptools.command
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 3, in <module>
ImportError: No module named setuptools.command
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /home/redacted/env/build/pymongo
Storing complete log in /home/redacted/.pip/pip.log
有什么想法吗?
蟒蛇版本2.7.3
pip 版本 pip 1.4 来自 /home/redacted/env/lib/python2.7/site-packages (python 2.7)