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


查看python3版本 python3 --version

查看python3路径 which python3

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

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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM