centos6.8安装python3.5.2
下载Python3.5的源码包并编译
wget
tar xf Python-3.5.2.tgz (大概80Mb)
cd Python-3.5.2
./configure --prefix=/usr/local/ --enable-shared
echo $?
make
echo $?
make install
ln –s /usr/local/bin/python3 /usr/bin/python3
在运行python之前需要配置库:
123 |
|