发布时间:2019-09-27 07:05:58编辑:auto阅读(2216)
在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
48549
47501
38320
35559
30016
26730
25706
20635
20360
18764
107°
150°
170°
165°
172°
215°
239°
356°
345°
312°