Skip to content

Instantly share code, notes, and snippets.

Last active February 22, 2021 02:31
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Setting up pyenv on Mac

Install Python and pyenv in MAC.

install homebrew if dont have it.

brew install zlib
brew install python # (to get system level python3; this step is optional)
brew install pyenv
pyenv install 3.7.0  # (to get shimmed python3)
pyenv versions
pyenv global 3.7.0
python --version  # (should say 3.7.0)

Add python to my bash profile

put in .zshrc

echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment