美文网首页
python: command not found

python: command not found

作者: Smallwolf_JS | 来源:发表于2024-07-29 14:13 被阅读0次
line 3: python: command not found

现在已经全部支持python3

可能你的环境不太对
需要配置环境变量

echo "alias python=/usr/bin/python3" >> ~/.zshrc
source ~/.zshrc

或者重新安装 python

brew install python

Xcode执行脚本发现报错:

python: error: Failed to locate 'python'.

解决方式:

sudo ln -s /Applications/Xcode.app/Contents/Developer/usr/bin/python3 /Applications/Xcode.app/Contents/Developer/usr/bin/python

相关文章

网友评论

      本文标题:python: command not found

      本文链接:https://www.haomeiwen.com/subject/rrlwhjtx.html