发布时间:2019-06-21 17:33:18编辑:auto阅读(2096)
CentOS 6自带的python是2.6的,下面记录下CentOS6源码安装python 3.5的过程
#wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz
#tar xf Python-3.5.2.tgz
#cd Python-3.5.2
#./configure --prefix=/usr/local/python3 --enable-shared --enable-loadable-sqlite-extensions
#make
#make install
#echo /usr/local/python3/lib >> /etc/ld.so.conf
#ldconfig
#ln -s /usr/local/python3/bin/python3.5 /usr/bin/
安装完成!
上一篇: Python 图片与字符串互转
下一篇: Python 监测文件是否更新
51027
50409
41023
37886
32351
29250
28130
22967
22929
21257
1131°
1836°
1482°
1419°
1706°
1509°
2170°
3741°
3671°
2583°