Skip to content

Unable to install any python version on MacOS 12.0.1 Macbook Pro 2016: "internal configure error for the platform triplet" #2171

@amirnn

Description

@amirnn
[ x] Platform information: MacOS Monterey 12.0.1
[ x] OS architecture (e.g. amd64): Intel x86_64
[ x] pyenv version: 2.2.2
[ x] Python version: no version works
[ x] C Compiler information: Apple clang version 13.0.0 - Target: arm64-apple-darwin21.1.0

I tried to follow other similar issues such as #1737, however, I was unable to fix this problem. I have included the error log down below.
log.txt

$ pyenv install 3.7.12 # for example
python-build: use openssl@1.1 from homebrew
python-build: use readline from homebrew
Downloading Python-3.7.12.tar.xz...
-> https://www.python.org/ftp/python/3.7.12/Python-3.7.12.tar.xz
Installing Python-3.7.12...
python-build: use readline from homebrew
python-build: use zlib from xcode sdk

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

Inspect or clean up the working tree at /var/folders/14/3sdry2dj3tjdmqpqm2z5z34r0000gn/T/python-build.20211128190121.23895
Results logged to /var/folders/14/3sdry2dj3tjdmqpqm2z5z34r0000gn/T/python-build.20211128190121.23895.log

Last 10 log lines:
checking for --with-cxx-main=... no
checking for clang++... no
configure:

By default, distutils will build C++ extension modules with "clang++".
If this is not intended, then set CXX on the configure command line.

checking for the platform triplet based on compiler characteristics... darwin
configure: error: internal configure error for the platform triplet, please file a bug report
make: *** No targets specified and no makefile found. Stop.


Also the $ pyenv doctor command returns: Congratulations! You are ready to build pythons!

Metadata

Metadata

Assignees

No one assigned

    Labels

    by-designthe reported behavior is as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions