解决报错/usr/bin/env: ‘python’: No such file or directory


个人笔记不保证成功

一.启动某个程序报错

/usr/bin/env: ‘python’: No such file or directory

二.解决方法

1.查看python3的版本

python3 --version

2.查找python3的安装位置:

whereis python3

3.为其创建符号连接:

sudo ln -s /usr/bin/python3 /usr/bin/python

4.尝试再次启动


免责声明!

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



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