CentOS6.5(Python-2.7.12)安装Pip

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CentOS6.5(Python-2.7.12)安装Pip相关的知识,希望对你有一定的参考价值。

1.安装setuptools(下载链接可从https://pypi.python.org/pypi/setuptools#code-of-conduct寻找)

#Download setuptools-25.1.6.tar.gz
wget --no-check-certificate https://pypi.python.org/packages/1f/7a/6b239a65d452b04ad8068193ae313b386e6fc745b92cd4584fccebecebf0/setuptools-25.1.6.tar.gz

# Extract the files:
tar -xvf setuptools-25.1.6.tar.gz  
cd setuptools-25.1.6

# Install setuptools using the Python 2.7.12:
python2.7 setup.py install

2.安装pip

yum install openssl.x86_64 openssl-devel.x86_64 mod_ssl.x86_64
curl https://bootstrap.pypa.io/get-pip.py | python2.7 -

 


以上是关于CentOS6.5(Python-2.7.12)安装Pip的主要内容,如果未能解决你的问题,请参考以下文章

CentOS6.5二进制包升级Python

centos 6.4 升级python到版本2.7.12

centos 6.4 升级python到版本2.7.12

centos6.5联网

CentOS6.5安装CM5.13

linux下centOS6.5下安装jdk