Linux CentOS 编绎安装Python 3.5

Linux CentOS 编绎安装Python 3.5

先决条件(若无安装,则不能编绎使用idle3):
yum install tk-devel

xz -d Python-3.5.0.tar.xz
tar zxf Python-3.5.0.tar
cd Python-3.5.0
./configure --prefix=/opt/python3
make
sudo make install
ln -s /opt/python3/bin/python3 ~/bin/python3
ln -s /opt/python3/bin/idle3 ~/bin/idle3
(或链接至/usr/bin/python3, /usr/bin/idle3)

posted @ 2015-10-08 10:37  庚武  Views(712)  Comments(0Edit  收藏  举报