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测试