centos7 python3.5.1安装脚本

yum  -y install openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel gcc gcc-cpp g++ make cmake wget
wget https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tar.xz
tar -vxf Python-3.5.1.tar.xz
cd Python-3.5.1
./configure --prefix=/usr/local/python3
make
make install
/usr/local/python3/bin/pip3 install --upgrade pip

 

分享到:更多 ()