Welcome to my website, have a nice day!
Dream it, Do it, Make it!

CENTOS 7安装pip和setuptools最新版

有两种方式安装Python Setuptools包管理工具:

setuptools.jpg

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 official site

当前最新版:setuptools-40.6.3.zip 。

解压之后进入解压后的目录,执行下面的命令:

python setup.py build 

python setup.py install

参考文章:

  1. CentOS7安装setuptools
  2. Building and Distributing Packages with Setuptools-Developer’s Guide
  3. Windows 10手动安装python 2.7.8
赞(0)
未经允许禁止转载:Ddmit » CENTOS 7安装pip和setuptools最新版

评论 抢沙发

登录

找回密码

注册