解決報(bào)錯(cuò)/usr/bin/env: ‘python’: No such file or directory
一.啟動(dòng)某個(gè)程序報(bào)錯(cuò)
/usr/bin/env: ‘python’: No such file or directory
解決方法
1.查看python3的版本
python3 --version
2.查找python3的安裝位置:
whereis python3
3.為其創(chuàng)建符號(hào)連接:文章來源:http://www.zghlxwxcb.cn/news/detail-810001.html
sudo ln -s /usr/bin/python3 /usr/bin/python
??4.嘗試再次啟動(dòng)文章來源地址http://www.zghlxwxcb.cn/news/detail-810001.html
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
Type "help", "copyright", "credits" or "license" for more information.
到了這里,關(guān)于/usr/bin/env: ‘python’: No such file or directory的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!