Python fails with optional installation of PYTHON_CONFIGURE_OPTS=" -- enable-framework" pyenv install in pyenv

Asked 2 years ago, Updated 2 years ago, 115 views

When I try to install Python 3.6.5 with the option PYTHON_CONFIGURE_OPTS=" --enable-framework" pyenv install on macOS 10.13 High Sierra, I get a log with BUILD FAILED (OS X 10.13.6 using python-build 20180424) and fail.Is there a good solution?

Xcode, command line tool, etc. are installed.

sed 's/%VERSION%/'"`DYLD_FRAMEWORK_PATH=/var/folders/8m/81qnxqq56nv378bskry80mx00000gn/T/python-build.20200603130659.66316/Python-3.6.5 ./python.exe -c 'import platform; print(platform.python_version())'`"'/g' < Mac/Resources/framework/Info.plist > /Users/username/.pyenv/versions/3.6.5/Python.framework/Versions/3.6/Resources/Info.plist
ln -fsn 3.6 /Users/username/.pyenv/versions/3.6.5/Python.framework/Versions/Current
ln -fsn Versions/Current/Python /Users/username/.pyenv/versions/3.6.5/Python.framework/Python
ln -fsn Versions/Current/Headers /Users/username/.pyenv/versions/3.6.5/Python.framework/Headers
ln -fsn Versions/Current/Resources /Users/username/.pyenv/versions/3.6.5/Python.framework/Resources
/usr/bin/install -c -m 555 Python.framework/Versions/3.6/Python /Users/username/.pyenv/versions/3.6.5/Python.framework/Versions/3.6/Python
cd Mac && make pythonw
clang -L/usr/local/opt/readline/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/[email protected]/lib -L/Users/username/.pyenv/versions/3.6.5/lib  -DPYTHONFRAMEWORK='"Python"' -o pythonw \
        ./Tools/pythonw.c -I.. -I./../Include \
        ../Python.framework/Versions/3.6/Python
./Tools/pythonw.c:214:9: warning: comparison of function 'posix_spawn' not equal to a null pointer is always true [-Wtautological-pointer-compare]
    if (posix_spawn != NULL) {
        ^~~~~~~~~~~    ~~~~
./Tools/pythonw.c:214:9: note: prefix with the address-of operator to silence this warning
    if (posix_spawn != NULL) {
        ^
        &
1 warning generated.
if test "Python.framework" = "no-framework"; then\
        /usr/bin/install-cpython.exe/Users/username/.pyenv/versions/3.6.5/Python.framework/Version/3.6/bin/python 3.6m;\
    else\
        /usr/bin/install-c-s Mac/pythonw/Users/username/.pyenv/versions/3.6.5/Python.framework/Version/3.6/bin/python 3.6m;\
    fi
install: /Users/username/.pyenv/versions/3.6.5/Python.framework/Version/3.6/bin/python 3.6m: Too many levels of symbolic links
make:***[altbininstall] Error 71``

python macos pyenv

2022-09-30 11:33

1 Answers

Sorry, I uninstalled Python and I was able to install it after reconstructing the environment.


2022-09-30 11:33

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.