asdf-community / asdf-python

Python plugin for the asdf version manager
https://github.com/asdf-vm/asdf
MIT License
656 stars 56 forks source link

Unable to install Python 3.7.9 on Mac OS Big Sur #81

Closed pavel-kalmykov closed 3 years ago

pavel-kalmykov commented 3 years ago

This is the error I am getting:

asdf install python 3.7.9
python-build 3.7.9 /Users/pavel/.asdf/installs/python/3.7.9
python-build: use openssl@1.1 from homebrew
python-build: use readline from homebrew
Downloading Python-3.7.9.tar.xz...
-> https://www.python.org/ftp/python/3.7.9/Python-3.7.9.tar.xz
Installing Python-3.7.9...
python-build: use readline from homebrew
python-build: use zlib from xcode sdk

BUILD FAILED (OS X 11.1 using python-build 1.2.21-6-g2bf6111f)

Inspect or clean up the working tree at /var/folders/9x/cn7zrj195kjgb54lsx9g0cc40000gp/T/python-build.20201222093824.35312
Results logged to /var/folders/9x/cn7zrj195kjgb54lsx9g0cc40000gp/T/python-build.20201222093824.35312.log

Last 10 log lines:
checking for --enable-universalsdk... no
checking for --with-universal-archs... no
checking MACHDEP... checking for --without-gcc... no
checking for --with-icc... no
checking for gcc... clang
checking whether the C compiler works... no
configure: error: in `/var/folders/9x/cn7zrj195kjgb54lsx9g0cc40000gp/T/python-build.20201222093824.35312/Python-3.7.9':
configure: error: C compiler cannot create executables
See `config.log' for more details
make: *** No targets specified and no makefile found.  Stop.

I have no idea about how can I solve this. Is there any problem with asdf? Or is it my computer?

pavel-kalmykov commented 3 years ago

It turned out that the solution was to update the xcode cli:

sudo rm -rf /Library/Developer/CommandLineTools
xcode-select --install