centos8 安装了python3还是提示python: command not found

查看python3版本 python3 --version

查看python3路径 which python3

更改默认版本
sudo alternatives --set python /usr/bin/python3

这个时候再查看python --version就更改为python3的版本了,python命令也正常了

posted @ 2021-08-25 09:44  游牧人生  阅读(3550)  评论(0)    收藏  举报