您的位置:首页 > 运维架构 > Linux

CentOS6.5(Python-2.7.12)安装Pip

2017-05-31 17:25 579 查看


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

wget https://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-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 -
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: