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

Iva*_*van 4 python python-2.7 14.04

ivan@MS-7640:~$ python -V
Python 2.7.10
Run Code Online (Sandbox Code Playgroud)


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.
Run Code Online (Sandbox Code Playgroud)


但我收到此错误消息:

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.
Run Code Online (Sandbox Code Playgroud)

如何解决?

Wel*_*993 5

运行此命令:

sudo pip install -U setuptools
Run Code Online (Sandbox Code Playgroud)

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