centos8 安装了python3还是提示python: command not found
查看python3版本 python3 --version
查看python3路径 which python3
更改默认版本
sudo alternatives --set python /usr/bin/python3
这个时候再查看python --version就更改为python3的版本了,python命令也正常了
愿山河浩荡,遍地开花
查看python3版本 python3 --version
查看python3路径 which python3
更改默认版本
sudo alternatives --set python /usr/bin/python3
这个时候再查看python --version就更改为python3的版本了,python命令也正常了