When running pyenv install 3.8.6
in the above environment, the build fails as shown below
$
..
BUILD FAILED (OS X 11.0 using python-build 20180424)
..
Xcode-beta.app
Do the following in the shell
$
LDFLAGS="-L$(xcrun --show-sdk-path)/usr/lib" pyenv install 3.8.6
$
pyenv versions
* system (set by /usr/local/var/pyenv/version)
3.8.6
Set globally, reload shell, check Python version
pyenv global 3.8.6
zsh -l
python --version
Python 3.8.6
It became 3.8.6
safely
Source: https://github.com/pyenv/pyenv/issues/1643 https://medium.com/@koji_kanao/install-python-3-8-0-via-pyenv-on-bigsur-b4246987a548
Recommended Posts