-
-
Save anton-petrov/942065a0d851f9a52543ffc6136bb355 to your computer and use it in GitHub Desktop.
macOS pyenv + homebrew initial install
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
/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 [email protected] | |
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