CENTOS 7安装pip和setuptools最新版

vps-under-title.png anjingling.png 1.png 科学上网教程 | 机场推荐 | 本站商务合作

有两种方式安装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)
未经允许禁止转载:优米格 » CENTOS 7安装pip和setuptools最新版

评论 抢沙发

合作&反馈&投稿

商务合作、问题反馈、投稿,欢迎联系

广告合作侵权联系

登录

找回密码

注册

Ads Blocker Image Powered by Code Help Pro

检测到广告已被屏蔽

您好,系统检测到您使用了广告屏蔽组件。

本网站并不包含任何侵入性广告,我们提供免费的内容,但是需要广告收入来维持运营,还请将本站加入拦截白名单!