CentOS6.5(Python-2.7.12)安装Pip

前端之家收集整理的这篇文章主要介绍了CentOS6.5(Python-2.7.12)安装Pip前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

转自:http://www.cnblogs.com/vijayfly/p/6117308.html


wgethttps://bootstrap.pypa.io/get-pip.py
python get-pip.py

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-6.tar.gz  
cd setuptools-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 - 

猜你在找的CentOS相关文章