标签:help check ref python3.6 通过 python3 hat pre ati
Linux环境下已存在python2,不要去卸载系统中已经存在的python2,否则会造成系统中好多其他需要python执行的程序异常
查看python2的安装路径: which python2
查看python3的安装路径:which python3
Python3安装方法:
首先切换到你想下载的路径下,在执行以下命令
[test@~]# wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tgz
[test@~]# tar -zxf Python-3.6.5.tgz
[test@~]# cd Python-3.6.5
在安装包中有一个README的文件,里面有写如何安装
[test@localhost Python-3.6.5]# ls
[test@localhost Python-3.6.5]# ./configure
[test@localhost Python-3.6.5]# make
[test@localhost Python-3.6.5]# make test
[test@localhost Python-3.6.5]# make install
安装好了,然后打开python3.6
[test@localhost Python-3.5.2]# python3
Python 3.6.5 (default, Mar 25 2018, 13:46:07)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
标签:help check ref python3.6 通过 python3 hat pre ati
原文地址:https://www.cnblogs.com/jianeng/p/9339294.html