centos 7 编译安装python 3.5.2

sudo yum groupinstall 'Development Tools'

sudo yum install zlib-devel bzip2-devel  openssl-devel ncurses-devel wget
wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tar.xz
tar Jxvf Python-3.5.2.tar.xz
./configure
sudo make && make install

;安装 pip
wget https://pypi.python.org/packages/11/b6/abcb525026a4be042b486df43905d6893fb04f05aac21c32c638e939e447/pip-9.0.1.tar.gz#md5=35f01da33009719497f01a4ba69d63c9
tar xvf pip-9.0.1.tar.gz
cd pip-9.0.1
python3.5 setup.py install

 

发表评论

电子邮件地址不会被公开。 必填项已用*标注