下载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之前需要配置库:
echo?/usr/local/lib/?>>/etc/ld.so.conf.d/local.conf ldconfig? python3?--version????测试
原文地址:http://blog.51cto.com/dellinger/2048920