centos6.8安装python3.5.2

centos6.8安装python3.5.2

下载python3.5的源码包并编译

wget
tarxfPython-3.5.2.tgz(大概80Mb)
cdPython-3.5.2
./configure--prefix=/usr/local/--enable-shared
echo$?
make
echo$?
makeinstall
ln–s/usr/local/bin/python3/usr/bin/python3

在运行python之前需要配置库:

echo/usr/local/lib/>>/etc/ld.so.conf.d/local.conf
ldconfig
python3--version测试

相关文章

Centos下搭建性能监控Spotlight
CentOS 6.3下Strongswan搭建IPSec VPN
在CentOS6.5上安装Skype与QQ
阿里云基于centos6.5主机VPN配置
CentOS 6.3下配置multipah
CentOS安装、配置APR和tomcat-native