問題
環(huán)境
Mac,Ventura 13.2,M2。
安裝出現(xiàn)錯誤
$>./configure --prefix=/Users/xxx/.nvm/versions/node/v12.22.12 <
./configure: line 3: exec: python: not found
nvm: install v12.22.12 failed!
解決方法
到 App 文件夾,并且打開
cd /System/Applications/Utilities/
open .
找到 終端.app,右鍵 -> 顯示簡介,鉤上 Rosetta
記得改完 Rosetta 之后,要重啟 終端.app,完全退出,然后再打開 終端.app
python3 命名 python文章來源:http://www.zghlxwxcb.cn/news/detail-639722.html
echo "alias python=/usr/bin/python3" >> ~/.zshrc
source ~/.zshrc
echo "alias python=/usr/bin/python3" >> ~/.bash_profile
source ~/.bash_profile
這樣就可以下載了文章來源地址http://www.zghlxwxcb.cn/news/detail-639722.html
到了這里,關(guān)于Mac nvm install failed python: not found的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!