Created
April 10, 2023 18:43
-
-
Save ifnull/9cab52fdfed71d930e10b27bd631c172 to your computer and use it in GitHub Desktop.
Install Python on MacOS using Brew and pyenv
This file contains hidden or 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
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
brew install openssl readline sqlite3 xz zlib | |
brew install pyenv | |
pyenv install 3.11.3 | |
pyenv global 3.11.3 | |
pyenv version | |
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.zshrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment