brew link python Linking /usr/local/Cellar/python/3.7.2_2... Error: Permission denied @ dir_s_mkdir
在用brew doctor执行的时候提示:
You have unlinked kegs in your Cellar.
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
python
然后报错:
Linking /usr/local/Cellar/python/3.7.2_2… Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks
是在/usr/local下没有Frameworks文件,需要先创建文件,然后再赋权限:
1.sudo mkdir /usr/local/Frameworks
2.sudo chown $(whoami):admin /usr/local/Frameworks
然后执行:brew link python
运行成功.截图如下: