Skip to content

Instantly share code, notes, and snippets.

@tonycao
Forked from yatsu/pyenv-python38-macos.sh
Created May 25, 2021 18:36
Show Gist options
  • Save tonycao/76b80865159426ee83a5b7e636b01d48 to your computer and use it in GitHub Desktop.
Save tonycao/76b80865159426ee83a5b7e636b01d48 to your computer and use it in GitHub Desktop.
Install Python 3.8.6 with pyenv on macOS Big Sur (11)
#!/bin/sh
# 1) Install Xcode 12
# 2) Install command line tools: `xcode-select --install`
# 3) Install Homebrew
# 4) brew install zlib bzip2 xz
CFLAGS="-I$(brew --prefix zlib)/include -I$(brew --prefix bzip2)/include -I$(brew --prefix xz)/include" \
LDFLAGS="-L$(brew --prefix zlib)/lib -L$(brew --prefix bzip2)/lib -L$(brew --prefix xz)/lib" \
pyenv install 3.8.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment