brew安裝Python3時(shí)出現(xiàn)的問(wèn)題:
$ brew install python3
Warning: python3 3.6.3 is already installed, it's just not linked.
You can use `brew link python3` to link this version.
$ brew link python3
Linking /usr/local/Cellar/python3/3.6.3... Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks
發(fā)現(xiàn)/usr/local/ 下沒(méi)有路徑/usr/local/Frameworks
需要新建該路徑,并修改權(quán)限
解決:
$ sudo mkdir /usr/local/Frameworks
$ sudo chown $(whoami):admin /usr/local/Frameworks
成功:
$ brew link python3
Linking /usr/local/Cellar/python3/3.6.3... 1 symlinks created
參考:
https://github.com/Homebrew/homebrew-core/issues/19286
|