python3.6的安装步骤
-
yum install openssl-devel bzip2-devel expat-devel gdbm-devel readline-davel sqlite-devel #安装依赖性
-
wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tgz :下载python源代码
-
tar -xzvf Python-3.6.0.tgz-C /tmp :解压
-
cd /tmp/python-3.6.0
-
./configure -prefix=/usr/local :安装到local目录下
-
make
-
make altinstall
-
cd /usr/bin
-
mv python python.backup
-
ln -s /usr/local/bin/python3.6/usr/bin/python
-
ln -s /usr/local/bin/python3.6/usr/bin/python3
-
ls yum*
-
把查出来的都要修改
vi yum-config-manager :把第一行python后面加上2(python2)
vi…… -
vi /usr/bin/gnome-tweak-tool
vi /usr/libexec/urlgrabber-ext-doown同13
-
python2 -v :查看python环境是否安装成功