Skip to content

Unable to install any python versions with pyenv in MacOS 11-12: "checking for the platform triplet based on compiler characteristics... darwin", "internal configure error for the platform triplet" #2143

@Jake-Mulhern

Description

@Jake-Mulhern

Description

  • Platform information (e.g. Ubuntu Linux 16.04): Mac OS (Big Sur version 11.6)
  • pyenv version: 2.2.0
  • Python version: Currently Python=2.7 and Python3=3.9 (Attempting to install 3.6)

I installed pyenv using homebrew. Every step along the way looked correct, however when I run

pyenv install 3.6.6

I get the following error

python-build: use openssl from homebrew
python-build: use readline from homebrew
Downloading Python-3.6.6.tar.xz...
-> https://www.python.org/ftp/python/3.6.6/Python-3.6.6.tar.xz
Installing Python-3.6.6...
python-build: use tcl-tk from homebrew
python-build: use readline from homebrew
python-build: use zlib from xcode sdk

BUILD FAILED (OS X 11.6 using python-build 2.2.0-5-g54889eb8)

Inspect or clean up the working tree at /var/folders/77/93y4tp5x557ff0h_3f76bh5c0000gn/T/python-build.20211103152847.87140
Results logged to /var/folders/77/93y4tp5x557ff0h_3f76bh5c0000gn/T/python-build.20211103152847.87140.log

Last 10 log lines:
checking for --with-cxx-main=<compiler>... 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.

I have tried uninstalling and reinstalling and continue to receive this error. Please assist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions