Homebrew: cannot bind python

I have python issue in Homebrew. Here is the result:

brew link python

Binding / usr / local / Cellar / python / 2.7.13 ... Error: permission denied - / usr / local / Frameworks

When I was ls -alin the contents of / usr / local (to see the permissions of the Framework), I found that there was no "Frameworks" directory.

I do not dare to mkdir Frameworksif he does it with the wrong permissions and does not connect it with other elements of the system.

+10
source share
4 answers

Create a directory Frameworksand chownfor themselves

$ sudo mkdir /usr/local/Frameworks
$ sudo chown -R $(whoami):admin /usr/local/Frameworks
$ brew link python
+20
source

: sudo chown -R "$USER":admin /usr/local Stack Overflow.

+3

pip

pip macOS OS X?

Also, the anaconda package is wonderful

https://www.continuum.io/downloads

0
source

This worked for me:

sudo chown -R $(whoami):admin /usr/local/Cellar/
brew unlink python
brew link python
0
source

Source: https://habr.com/ru/post/1670816/


All Articles