centos7下怎么更新python解释器版本到3

1.在 CentOS 上安装 SCL 源:

yum install centos-release-scl

2.从 scl 源安装可用的最新版 python 3:

yum install rh-python35

3.在当前 shell 中启用安装的软件包:

scl enable rh-python35 bash

4.检查安装的 python3 版本:

python -V

 

posted @ 2019-08-31 10:35  林三点  阅读(248)  评论(0)    收藏  举报