发布时间:2019-06-21 17:33:18编辑:auto阅读(2097)
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 监测文件是否更新
51028
50413
41024
37888
32354
29251
28132
22969
22930
21259
1133°
1837°
1485°
1422°
1708°
1511°
2172°
3743°
3672°
2585°