CentOS71611安装Python3.5.3

yum install openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel gcc wget

wget "https://www.python.org/ftp/python/3.5.3/Python-3.5.3.tgz"

tar -zxvf Python-3.5.3.tgz

cd Python-3.5.3

mkdir /usr/python3.5

./configure --prefix=/usr/python3.5

make && make install

mv /usr/bin/python python.bak

ln -s /usr/python3.5/bin/python3 /usr/bin/python

vi /usr/bin/yum

 参考:

http://www.landui.com/help/show-4902.html

http://www.cnblogs.com/waylon/p/6569196.html

解决yum update报错问题:

vi /usr/libexec/urlgrabber-ext-down

yum install deltarpm

 

posted on 2017-05-15 16:17  VincentZhu  阅读(184)  评论(0编辑  收藏  举报