如何在 Ubuntu 14.04 上正确安装 python-setuptools

如何在 Ubuntu 14.04 上正确安装 python-setuptools
ivan@MS-7640:~$ python -V
Python 2.7.10


sudo apt-get install python-setuptools
[sudo] password for ivan: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python-setuptools is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


但我收到此错误信息:

Checking python module: setuptools ... 
 setuptools  is not installed, Please install it first.

On Debian/Ubntu: apt-get install python-setuptools
On CentOS/RHEL: yum install python-distribute


Error occured during setup. 
Please fix possible problems and run the script again.

如何修复?

答案1

运行此命令:

sudo pip install -U setuptools

此命令安装所需的依赖项。

相关内容