When installing Python 3.7.7 on my MacBook pro, OS 15.5, using the command pyenv install 3.7.7 I get this error: pyenv install 3.7.7 python-build: use openssl from homebrew python-build: use readline from homebrew Downloading Python-3.7.7.tar.xz... -> https://www.python.org/ftp/python/3.7.7/Python-3.7.7.tar.xz Installing Python-3.7.7... python-build: use readline from homebrew python-build: use zlib from xcode sdk BUILD FAILED (OS X 15.5 using python-build 2.6.4) Inspect or clean up the working tree at /var/folders/wx/jsppxtm950q5ywpypkvrsq7c0000gn/T/python-build.20250710104639.93089 Results logged to /var/folders/wx/jsppxtm950q5ywpypkvrsq7c0000gn/T/python-build.20250710104639.93089.log Last 10 log lines: checking size of _Bool... 1 checking size of off_t... 8 checking whether to enable large file support... no checking size of time_t... 8 checking for pthread_t... yes checking size of pthread_t... 8 checking size of pthread_key_t... 8 checking whether pthread_key_t is compatible with int... no configure: error: Unexpected output of 'arch' on OSX make: *** No targets specified and no makefile found. Stop. enter image description here I have upgraded pyenv to the latest version and followed the steps below, but it did not solve the problem. Problems installing python 3.6 with pyenv on Mac OS Big Sur Continue reading...