When I tried to install python onto homebrew it downloaded it and then an error message popped up at the end that stopped it from completing. When I try to do it again it asks me to do:
$ brew link python
After entering that the same error message appears:
permission denied @ dir_s_mkdir - /usr/local/lib
I have tried to do:
$ sudo chown -R $(whoami) /usr/local
And I get an error message that reads:
chown: /usr/local: Operation not permitted
Now, on your new M1 Mac, you can install Homebrew with /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" . After the install is complete you'll see a message similar to the one below. Remember, Homebrew is now going to install packages in /op/homebrew/bin .
On Mac Intel, Homebrew installs itself into the /usr/local/bin directory, which is already configured for access by the shell with the macOS default $PATH environment variable (the default is set by the /usr/libexec/path_helper command).
sudo mkdir /usr/local/Frameworks sudo chown $(whoami):admin /usr/local/Frameworks brew link python3
sudo mkdir /usr/local/Frameworks sudo chown $USER /usr/local/Frameworks
And then try re-installing python. This worked absolutely fine for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With