centos7中 安装python3

 

01、系统信息

[root@PC1 ~]# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)

 

02、测试python3

[root@PC1 ~]# python3 --version
bash: python3: command not found...
Similar command is: 'python'

 

03、利用yum安装python3

[root@PC1 ~]# yum install python3

 

04、测试

[root@PC1 ~]# python3 --version
Python 3.6.8

 

 

posted @ 2023-07-17 22:40  小鲨鱼2018  阅读(11)  评论(0编辑  收藏  举报