有两种方式安装Python Setuptools包管理工具:
1.通过pip安装
1)安装pip
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
2)安装setuptools
[root@pan netdisc]# pip install -U setuptools
Collecting setuptools
Downloading https://files.pythonhosted.org/packages/37/06/754589caf971b0d2d48f151c2586f62902d93dc908e2fd9b9b9f6aa3c9dd/setuptools-40.6.3-py2.py3-none-any.whl (573kB)
100% |████████████████████████████████| 573kB 21.4MB/s
Installing collected packages: setuptools
Found existing installation: setuptools 0.9.8
Uninstalling setuptools-0.9.8:
Successfully uninstalled setuptools-0.9.8
Successfully installed setuptools-40.6.3
2.通过源码安装
当前最新版:setuptools-40.6.3.zip 。
解压之后进入解压后的目录,执行下面的命令:
python setup.py build
python setup.py install
参考文章:
- CentOS7安装setuptools;
- Building and Distributing Packages with Setuptools-Developer’s Guide;
- Windows 10手动安装python 2.7.8;
最新评论
Q一零二五九八**一六求大哥帮帮忙
几个网址都打不开了
搞了好久,又卡到了电报注册上,一直没有验证码过来。能不能来个大神帮我查一下呀!210**66421@qq.com
可以代充嘛,币安要身份证认证的,流程麻烦