手记

centos6.8安装python3.5.2

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

echo /usr/local/lib/ >>/etc/ld.so.conf.d/local.conf

ldconfig

python3 --version    测试


0人推荐
随时随地看视频
慕课网APP