1. 程式人生 > >CentOS安裝python3詳細步驟

CentOS安裝python3詳細步驟

1
yum install openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel
2
wget http://www.python.org/ftp/python/3.2.3/Python-3.2.3.tar.bz2
3
tar -xjf Python-3.2.3.tar.bz2
4
cd Python-3.2.3
5
./configure --prefix=/usr/local/python3
6
 make && make install
7
 rm -rf /usr/bin/python*
8
ln -s /usr/local
/python3/bin/python3 /usr/bin/python
9檢視版本
python -v