line 3: python: command not found
現(xiàn)在已經(jīng)全部支持python3
可能你的環(huán)境不太對(duì)
需要配置環(huán)境變量
echo "alias python=/usr/bin/python3" >> ~/.zshrc
source ~/.zshrc
或者重新安裝 python
brew install python
Xcode執(zhí)行腳本發(fā)現(xiàn)報(bào)錯(cuò):
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