Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save gaberogan/04ba526ed2752ebccabe1b77e33ee8b8 to your computer and use it in GitHub Desktop.
Save gaberogan/04ba526ed2752ebccabe1b77e33ee8b8 to your computer and use it in GitHub Desktop.
Install Python with pyenv and pyenv-virtualenv on MacOS

Installation

Carefully follow these READMEs:

These are the commands I used on MacOS with ZSH:

brew update
brew install pyenv

echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshrc\
echo 'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshrc\
echo 'eval "$(pyenv init -)"' >> ~/.zshrc

exec "$SHELL"

brew install openssl readline sqlite3 xz zlib tcl-tk

pyenv install 3.11.4
pyenv global 3.11.4

brew install pyenv-virtualenv

pyenv virtualenv 3.11.4 nba-data-scrapping-3.11.4

echo "nba-data-scrapping-3.11.4" >> .python-version

exec "$SHELL"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment