Skip to content

Instantly share code, notes, and snippets.

@ifnull
Created April 10, 2023 18:43
Show Gist options
  • Save ifnull/9cab52fdfed71d930e10b27bd631c172 to your computer and use it in GitHub Desktop.
Save ifnull/9cab52fdfed71d930e10b27bd631c172 to your computer and use it in GitHub Desktop.
Install Python on MacOS using Brew and pyenv
/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