CentOS6.9安装Python2.7、setuptools、pip
作者:互联网
python2.7
yum install -y zlib zlib-devel openssl openssl-devel mysql-devel gcc gcc-c++ wget https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tgz tar -zxvf Python-2.7.13.tgz cd Python-2.7.13 ./configure --prefix=/usr/local/python2.7 make make install
setuptools
wget https://files.pythonhosted.org/packages/dc/8c/7c9869454bdc53e72fb87ace63eac39336879eef6f2bf96e946edbf03e90/setuptools-33.1.1.zip unzip setuptools-33.1.1.zip
cd setuptools-33.1.1 /usr/local/python2.7/bin/python2.7 setup.py install
pip
wget https://pypi.python.org/packages/source/p/pip/pip-1.3.1.tar.gz --no-check-certificate tar -zxvf pip-1.3.1.tar.gz
cd pip-1.3.1 /usr/local/python2.7/bin/python2.7 setup.py install
建立软链接
cd /usr/bin ln -s /usr/local/python2.7/bin/pip-2.7 ./pip2.7 ln -s /usr/local/python2.7/bin/python2.7 ./python2.7
标签:bin,Python2.7,python2.7,local,CentOS6.9,usr,pip,2.7 来源: https://www.cnblogs.com/lb477/p/10809297.html