CentOS6.5安装Python2.7和Pip
2017-09-07 11:34
741 查看
原文地址
一、安装Python-2.7.12
1.安装Development Toolsyum groupinstall -y 'development tools'
2安装SSL、bz2、zlib来为Python的安装做好准备工作
yum install -y zlib-devel bzip2-devel openssl-devel xz-libs wget
3.下载Python-2.7.12.tar.xz并解压
1 wget https://www.python.org/ftp/python/2.7.12/Python-2.7.12.tar.xz 2 xz -d Python-2.7.8.tar.xz 3 tar -xvf Python-2.7.8.tar
4.安装Python-2.7.12
1 # Enter the directory: 2 cd Python-2.7.12 3 4 # Run the configure: 5 ./configure --prefix=/usr/local 6 7 # compile and install it: 8 make 9 make altinstall 10 11 # Checking Python version: 12 python2.7 -V
二、安装Pip-8.1.2
1.安装setuptools(下载链接可从https://pypi.python.org/pypi/setuptools#code-of-conduct寻找)1#Download setuptools-25.1.6.tar.gz
2 wget --no-check-certificate https://pypi.python.org/packages/1f/7a/6b239a65d452b04ad8068193ae313b386e6fc745b92cd4584fccebecebf0/setuptools-25.1.6.tar.gz 3 4 # Extract the files: 5 tar -xvf setuptools-25.1.6.tar.gz 6 cd setuptools-25.1.6 7 8 # Install setuptools using the Python 2.7.12: 9 python2.7 setup.py install
2.下载pip和安装pip, piip官网 https://pip.pypa.io/en/stable/installing/
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
相关文章推荐
- CentOS6.5升级Python到2.7并安装pip
- CentOS6.5上安装Python2.7和PIP
- CentOS6.5上安装Python2.7和PIP
- CentOS 6.5上安装python2.7、pip以及Python命令行补全和yum冲突解决
- CentOS6.5安装Python2.7和Pip
- CentOS6.5上安装Python2.7和PIP
- CentOS6.5升级Python2.6到Python2.7并安装pip
- CentOS6.5上安装Python2.7和PIP
- centos6.5升级python2.6到2.7 + 安装pip
- CentOS6.5上安装Python2.7和PIP
- 【Linux】 CentOS6.5安装Python2.7以及pip等工具
- CentOS升级Python2.6到Python2.7并安装pip
- centos6.8升级到python2.7及安装pip
- centos7.2+python2.7 gdal安装教程(校园网开启防火墙,无法使用yum,pip等工具)
- 在CentOS 6.5上安装python2.7
- CentOS升级Python2.6到Python2.7并安装pip
- centos6.5系统用Python3.6.3安装pip
- centos安装更新Python2.7以及pip的安装
- CentOS6.5 安装Python2.7后, yum出现“No module named yum”错误
- centos python2.7安装setuptools\pip