Skip to content

Instantly share code, notes, and snippets.

@scott-hsieh
Last active December 12, 2020 00:29
Show Gist options
  • Save scott-hsieh/585a569d0b2eeb749bc7743966f41c7b to your computer and use it in GitHub Desktop.
Save scott-hsieh/585a569d0b2eeb749bc7743966f41c7b to your computer and use it in GitHub Desktop.
Compile Python 3.8.6 on MacBook with Big Sur
CPPFLAGS="-I$(brew --prefix zlib)/include -I$(brew --prefix bzip2)/include" && \
CFLAGS="-I$(brew --prefix openssl)/include -I$(brew --prefix readline)/include" && \
LDFLAGS="-L$(brew --prefix openssl)/lib -L$(brew --prefix readline)/lib -L$(brew --prefix zlib)/lib -L$(brew --prefix bzip2)/lib" && \
pyenv install -v 3.8.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment