发布时间:2019-09-27 07:05:58编辑:auto阅读(2563)
在https://www.Python.org/ftp/python/下找到您所需的python版本
如https://www.python.org/ftp/python/3.4.1/Python-3.4.1.tgz
下载python
wget https://www.python.org/ftp/python/3.4.1/Python-3.4.1.tgz
解压编译安装
# tar zxvf Python-3.4.1.tgz
# cd Python-3.4.1.tgz
# ./configure
# make
# make install
此时,新版本的python没有覆盖原来的版本,先将原来的python重命名
# mv /usr/bin/python /usr/bin/python_old
重新建立超链接
# ln -s "python下载编译目录" /usr/bin/python
再次打开python则显示新版本
# python
Python 3.4.1 (default, Aug 25 2014, 10:04:52)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on Linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
安装成功!
上一篇: Centos7 Python3安装
下一篇: centos 7 下安装python3
50969
50351
40966
37833
32298
29190
28076
22906
22868
21199
1060°
1740°
1426°
1359°
1629°
1446°
2105°
3652°
3576°
2525°