MAC OS install python3 Error: Permission denied @ dir_s_mkdir-/usr/local/Frameworks

The python version that comes with mac os is 2.7, because it needs to be upgraded to python3. The process is as follows:
execute:

brew install python3

In theory, the installation can be successful by executing this command, but the following error is reported:


The reason is that /usr/local/Frameworks does not exist, the solution:

sudo mkdir /usr/local/Frameworks
sudo chown $USER /usr/local/Frameworks

Then re-run `brew install python3` to install successfully.

Read More:

Leave a Reply

Your email address will not be published. Required fields are marked *