Last active
September 16, 2022 11:01
-
-
Save a0x/dc83d3de45512d80cd75e29d1d5c8d50 to your computer and use it in GitHub Desktop.
Install python 3.6 on macOS Big Sur via pyenv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# requires: | |
# zlib | |
# bzip2 | |
# openssl | |
# readline | |
# ncurses | |
# macOS SDK | |
CFLAGS="-I$(brew --prefix zlib)/include -I$(brew --prefix bzip2)/include -I$(brew --prefix openssl)/include -I$(brew --prefix readline)/include -I$(brew --prefix ncurses)/include -I$(xcrun --show-sdk-path)/usr/include" \ | |
LDFLAGS="-L$(brew --prefix zlib)/lib -L$(brew --prefix bzip2)/lib -L$(brew --prefix openssl)/lib -L$(brew --prefix readline)/lib -L$(brew --prefix ncurses)/lib -L$(xcrun --show-sdk-path)/usr/lib" \ | |
pyenv install --patch 3.6.12 < <(curl -sSL https://github.com/python/cpython/commit/8ea6353.patch\?full_index\=1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment