Skip to content

Instantly share code, notes, and snippets.

@anton-petrov
Forked from excenter/rune.bash
Last active February 26, 2019 17:18
Show Gist options
  • Save anton-petrov/942065a0d851f9a52543ffc6136bb355 to your computer and use it in GitHub Desktop.
Save anton-petrov/942065a0d851f9a52543ffc6136bb355 to your computer and use it in GitHub Desktop.
macOS pyenv + homebrew initial install
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
export VERSION="3.7.2"
export LDFLAGS="-L/usr/local/opt/sqlite/lib -L/usr/local/opt/zlib/lib"
export CPPFLAGS="-I/usr/local/opt/sqlite/include -I/usr/local/opt/zlib/include"
export CFLAGS="-Ofast -I$(xcrun --show-sdk-path)/usr/include"
xcode-select --install
brew update
brew upgrade
brew install git
brew install zlib readline xz
brew install openssl@1.1
brew install sqlite
curl https://pyenv.run | bash
echo 'export PATH="/Users/user/.pyenv/bin:$PATH' >> ~/.bashrc
echo 'eval "$(pyenv init -)"' >> ~/.bashrc
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc
source ~/.bashrc
pyenv install $VERSION
pyenv global $VERSION
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment