发布时间:2019-06-21 17:33:18编辑:auto阅读(2836)
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 监测文件是否更新
54945
41738
36324
31762
26659
26347
24874
20483
16421
15839
2963°
2696°
2797°
2940°
2873°
3136°
3029°
2876°
2865°
2841°