1. 程式人生 > >CentOS 編譯安裝 python 3.5

CentOS 編譯安裝 python 3.5

centos python 源碼安裝

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/

安裝完成!

CentOS 編譯安裝 python 3.5