CentOS7.2下python安装pip-8.0.2管理

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CentOS7.2下python安装pip-8.0.2管理相关的知识,希望对你有一定的参考价值。

1.去51cto下载pip-8.0.2.tar.gz包
2.解压pip-8.0.2.tar.gz
[[email protected] pip-8.0.2]# tar -zxvf pip-8.0.2.tar.gz
3.安装
[[email protected] pip-8.0.2]# cd pip-8.0.2
[[email protected] pip-8.0.2]# python setup.py install
4.出现如下报错
[[email protected] pip-8.0.2]# python setup.py install
Traceback (most recent call last):
File "setup.py", line 6, in <module>
from setuptools import setup, find_packages
ImportError: No module named setuptools

5.此错误说明缺少setuptools,去下载setuptools-2.0.tar.gz
[[email protected] ~]# wget https://pypi.python.org/packages/source/s/setuptools/setuptools-2.0.tar.gz
6.解压setuptools-2.0.tar.gz
[[email protected] pip-8.0.2]# tar -zxvf setuptools-2.0.tar.gz
7.安装
[[email protected] setuptools-2.0]# python setup.py build
[[email protected] setuptools-2.0]# python setup.py install
8.切换到pip-8.0.2目录下再次进行安装
[[email protected] pip-8.0.2]# python setup.py install
...
Processing dependencies for pip==8.0.2

以上是关于CentOS7.2下python安装pip-8.0.2管理的主要内容,如果未能解决你的问题,请参考以下文章

CentOS7.2上安装Python3.6

Centos7.2中安装pip

Centos7下部署两套python版本并存

CentOS7.2安装配置nginx+flask+python+uwsgi运行环境

CentOS7.2安装配置nginx+uwsgi+python+flask运行环境

CentOS7.2安装python2.7.12