0

I'm trying to downgrade Python 3.8.2 to Python 3.7.0 on macOS Big Sur by following the Homebrew method specified here.

However, while executing the pyenv install 3.7.0 command I'm facing an unsolvable error as follows:

bash-3.2$ pyenv install 3.7.0
python-build: use openssl@1.1 from homebrew
python-build: use readline from homebrew
Downloading Python-3.7.0.tar.xz...
-> https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tar.xz
Installing Python-3.7.0...
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/gf/g7tsgb6x4l9gyms1jm5kmlsc0000gn/T/python-build.20210108113802.24514
Results logged to /var/folders/gf/g7tsgb6x4l9gyms1jm5kmlsc0000gn/T/python-build.20210108113802.24514.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/gf/g7tsgb6x4l9gyms1jm5kmlsc0000gn/T/python-build.20210108113802.24514/Python-3.7.0':
configure: error: C compiler cannot create executables
See `config.log' for more details
make: *** No targets specified and no makefile found.  Stop.

Are there any workarounds for this method? Is uninstalling Python 3.8.2 and doing a clean install with Python 3.7.0 recommended?

Luke
  • 350
  • 10
  • Check this thread out --> https://github.com/pyenv/pyenv/issues/1737#issuecomment-738080459...Also, if you're running a MBP M1 with Arm64, run terminal with rosetta before installing. – calbear47 Feb 01 '21 at 17:59

0 Answers0