发布时间:2019-09-27 07:05:58编辑:auto阅读(2573)
在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
51027
50406
41022
37886
32351
29248
28130
22965
22929
21256
1131°
1836°
1482°
1419°
1705°
1509°
2169°
3739°
3671°
2583°