当前位置:   article > 正文

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

env: python: no such file or directory

解决报错/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.尝试再次启动

  1. Python 3.11.5 (v3.11.5:cce6ba91b3, Aug 24 2023, 10:50:31) [Clang 13.0.0 (clang-1300.0.29.30)] on darwin
  2. Type "help", "copyright", "credits" or "license" for more information.
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/weixin_40725706/article/detail/768525
推荐阅读
相关标签
  

闽ICP备14008679号