Die Pyenv-Installation von Python 2.7.8 ist unter MACOS fehlgeschlagenPython

Python-Programme
Anonymous
 Die Pyenv-Installation von Python 2.7.8 ist unter MACOS fehlgeschlagen

Post by Anonymous »

Ich versuche, Python 2.7.8 für ein Projekt zu installieren, das diese Python-Version verwendet.
Aber wenn ich den Befehl verwende:

Code: Select all

$ pyenv install 2.7.8
Ich habe diese Fehlermeldung:

Code: Select all

python-build: use openssl from homebrew
python-build: use readline from homebrew
Downloading Python-2.7.8.tar.xz...
-> https://www.python.org/ftp/python/2.7.8/Python-2.7.8.tar.xz
Installing Python-2.7.8...
patching file ./Lib/site.py
patching file ./Lib/ssl.py
patching file ./Modules/_ssl.c
python-build: use readline from homebrew ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?

Please consult to the Wiki page to fix the problem.
https://github.com/pyenv/pyenv/wiki/Common-build-problems

BUILD FAILED (OS X 10.13.6 using python-build 20180424)

Inspect or clean up the working tree at /var/folders/xj/fd4h39yj5tn126v2rpf729km0000gn/T/python-build.20200719233445.90241 Results logged to /var/folders/xj/fd4h39yj5tn126v2rpf729km0000gn/T/python-build.20200719233445.90241.log

Last 10 log lines:
(cd /Users/nekcorp/.pyenv/versions/2.7.8/bin; ln -s python2-config python-config)
test -d /Users/nekcorp/.pyenv/versions/2.7.8/lib/pkgconfig || /usr/bin/install -c -d -m 755 /Users/nekcorp/.pyenv/versions/2.7.8/lib/pkgconfig
rm -f /Users/nekcorp/.pyenv/versions/2.7.8/lib/pkgconfig/python2.pc
(cd /Users/nekcorp/.pyenv/versions/2.7.8/lib/pkgconfig; ln -s python-2.7.pc python2.pc)
rm -f /Users/nekcorp/.pyenv/versions/2.7.8/lib/pkgconfig/python.pc
(cd /Users/nekcorp/.pyenv/versions/2.7.8/lib/pkgconfig; ln -s python2.pc python.pc)
rm -f /Users/nekcorp/.pyenv/versions/2.7.8/share/man/man1/python2.1
(cd /Users/nekcorp/.pyenv/versions/2.7.8/share/man/man1; ln -s python2.7.1 python2.1)
rm -f /Users/nekcorp/.pyenv/versions/2.7.8/share/man/man1/python.1
(cd /Users/nekcorp/.pyenv/versions/2.7.8/share/man/man1; ln -s python2.1 python.1)
Ich habe den Link in der Beschreibung gesehen und die Umgebungsvariablen CFLAGS und CPPFLAGS exportiert, aber ich erhalte immer noch die Fehlermeldung.
Vielen Dank für Ihre Hilfe.

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post