Linux同时安装python2和Python3

python
python

我们以Centos为例,默认地,Linux安装好后会默认安装python2版本:

[root@localhost spiders]# python –version
Python 2.7.5

[root@localhost spiders]# python
Python 2.7.5 (default, Oct 30 2018, 23:45:53)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.
>>>

安装Python3:

[root@localhost spiders]# yum install python3

[root@localhost spiders]# python3
Python 3.6.8 (default, Apr 2 2020, 13:34:55)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux
Type “help”, “copyright”, “credits” or “license” for more information.
>>>

如果发现下载不了或者地址失效,请联系客服QQ: 2323178881
找资料 » Linux同时安装python2和Python3

提供最优质的资源集合

立即查看 了解详情