2017-03-05 5 views
0

Wenn ich $ brew install python3 betreibe ich die folgende Fehlermeldung erhalten:Python3 Installation Nicht

==> Downloading https://homebrew.bintray.com/bottles/python3-3.6.0_1.sierra.bottle.tar.gz 
... 
copying build/lib/pkg_resources/__init__.py -> /usr/local/lib/python3.6/site-packages/pkg_resources 
error: could not create '/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py': Permission denied 
Warning: The post-install step did not complete successfully 
You can try again using `brew postinstall python3` 
==> Caveats 
Pip, setuptools, and wheel have been installed. To update them 
    pip3 install --upgrade pip setuptools wheel 

You can install Python packages with 
    pip3 install <package> 

They will install into the site-package directory 
    /usr/local/lib/python3.6/site-packages 

See: http://docs.brew.sh/Homebrew-and-Python.html 
==> Summary 
    /usr/local/Cellar/python3/3.6.0_1: 3,259 files, 51.3M 

Die Installation stoppt bei error: could not create '/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py': Permission denied Warning: The post-install step did not complete successfully

Wenn ich $ brew postinstall python3 laufen lasse, erhalte ich den gleichen Fehler:

==> Using the sandbox 
... 
running install_lib 
copying build/lib/easy_install.py -> /usr/local/lib/python3.6/site-packages 
copying build/lib/pkg_resources/__init__.py -> /usr/local/lib/python3.6/site-packages/pkg_resources 
error: could not create '/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py': Permission denied 

READ THIS: http://docs.brew.sh/Troubleshooting.html 

Dieser Fehler verhindert, dass python3

eingegeben wird

Ich benutze macOS Sierra. Bitte beraten.

+0

Was bedeutet 'Gebräu doctor' sagen werben? Und was sind die Berechtigungen von '/ usr/local /'? (d. h. Ausgabe von 'ls -ld/usr/local'?) – eddies

Antwort

1

konnte ich das Problem lösen, wird die folgende issue

cd /usr/local/lib/python3.6/site-packages 
sudo chown -R <username> ./*