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

Closed
@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.

Activity

changed the title [-]Unable to install any python versions with pyenv[/-] [+]Unable to install any python versions with pyenv in MacOS 11[/+] on Nov 3, 2021
native-api

native-api commented on Nov 3, 2021

@native-api
Member

For 3.6 specifically, duplicate of #1737 . 3.6 doesn't support MacOS 11+.

genewliu

genewliu commented on Feb 28, 2022

@genewliu

Hi sir - sorry I think we need some help on this issue as it seems different from #1737.

youngtechc

youngtechc commented on Mar 15, 2022

@youngtechc

Did you ever get a response? I'm running into the same issue

lofoyet

lofoyet commented on Mar 15, 2022

@lofoyet

same here

native-api

native-api commented on Mar 15, 2022

@native-api
Member

Need full diagnostic info as per the issue template and also config.log.

native-api

native-api commented on Mar 15, 2022

@native-api
Member

Also please explain how the issue is different from #1737 . It says there clear as day that 3.6.6 is incompatible with MacOS 11+.

MarcFogleman

MarcFogleman commented on Mar 15, 2022

@MarcFogleman

I have a coworker with this same error when trying to install 3.10.0. @Jake-Mulhern, does your Macbook have an M1 Pro chip?

abhishekeb7

abhishekeb7 commented on Mar 15, 2022

@abhishekeb7

Facing the same issue.

Platform: MacOS Monterey 12.3 with Intel chip.

DanielFNG

DanielFNG commented on Mar 15, 2022

@DanielFNG

Accidentally posted this on a closed issue earlier (#1737 (comment)).

I have not seen this issue before upgrading to Monterey 12.3, but now I am unable to install Python 3.8.12 using pyenv. I am on an M1 Mac, and installed pyenv, and the python3 dependencies, via homebrew following the installation instructions.

pyenv install 3.8.12
python-build: use openssl@1.1 from homebrew
python-build: use readline from homebrew
Installing Python-3.8.12...
python-build: use readline from homebrew
python-build: use zlib from xcode sdk

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

The log file generated contains the following error:

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.
native-api

native-api commented on Mar 16, 2022

@native-api
Member

28 remaining items

joshfriend

joshfriend commented on Mar 18, 2022

@joshfriend
Member

Hi folks, if you see a comment that helps you, just 👍 to the comment instead of leaving new ones. Adding "me too" comments just creates noise for us maintainers to have to sift through.

If you have a new unique problem, please open new issues for them.

locked as resolved and limited conversation to collaborators on Mar 18, 2022
deleted a comment from boblail on Mar 18, 2022
deleted a comment from atendron on Mar 18, 2022
deleted a comment from pbrewer-ifit on Mar 18, 2022
deleted a comment from genewliu on Mar 18, 2022
deleted a comment from leonardorhojas on Mar 18, 2022
deleted a comment from pbrewer-ifit on Mar 18, 2022
deleted a comment from John15321 on Mar 18, 2022
deleted a comment from ErikaJacobs on Mar 18, 2022
deleted a comment from jwaller-bbln on Mar 20, 2022
native-api

native-api commented on Apr 29, 2022

@native-api
Member

2all:
#2344 has backported the fix to 3.7.8+, 3.8.4+, 3.9.0+ (all versions that support MacOS 11+).
So this should be over now as long as you have Pyenv with that PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @dhalperi@mcouthon@joshfriend@native-api@Vash63

        Issue actions

          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" · Issue #2143 · pyenv/pyenv