Mac安装Python3报错Permission denied @ dir_s_mkdir - /usr/local/Frameworks

时间:2023-12-05 16:52:02

brew安装Python3时出现的问题:

Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks

/usr/local/Frameworks
ls: /usr/local/Frameworks: No such file or directory

此时会发现两个错误,第一个是权限问题,第二个是/usr/local/Frameworks目录不存在。

创建目录:

sudo mkdir /usr/local/Frameworks

给权限:

sudo chown $(whoami):admin /usr/local/Frameworks

问题就解决了