centos 7安装python3.5

root 登录

python -V ,查看当前系统版本

which python,查看 python系统路径

 

/usr/libexec/urlgrabber-ext-down,修改urlgrabber配置文件,把头部的python改成python2.7

http://www.cnblogs.com/lclq/archive/2016/06/27/5620196.html

 

http://www.cnblogs.com/rwxwsblog/p/5710211.html

 

如果提示:

 Ignoring ensurepip failure: pip 7.1.2 requires SSL/TLS

请恢复 python2.7 备份,安装 open SSL
#yum install openssl-devel

$ ./configure
checking for --enable-universalsdk... no
checking for --with-universal-archs... 32-bit
checking MACHDEP... linux2
checking machine type as reported by uname -m... i686
checking for --without-gcc... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home/garrett/Desktop/temp/Python-3.2':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details

请安装 gcc,yum install gcc 
posted @ 2017-03-29 14:06  一光年の  阅读(139)  评论(0)    收藏  举报