Skip to content

Instantly share code, notes, and snippets.

@beatrizuezu
Created November 26, 2018 17:57
Show Gist options
  • Save beatrizuezu/062fc799d0d2fd78bda0c7562a259fd3 to your computer and use it in GitHub Desktop.
Save beatrizuezu/062fc799d0d2fd78bda0c7562a259fd3 to your computer and use it in GitHub Desktop.
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
or these commands for Mac
brew update
brew install pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshrc
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.zshrc
---------------------------------------------------------------------------------------------------------------------------
VIRTUALENVWRAPPER WITH PYENV
---------------------------------------------------------------------------------------------------------------------------
git clone https://github.com/pyenv/pyenv-virtualenvwrapper.git $(pyenv root)/plugins/pyenv-virtualenvwrapper
or this command for Mac
brew install pyenv-virtualenvwrapper
# .zshrc
export WORKON_HOME=~/.virtualenvs
export PROJECT_HOME=~/workspace
eval "$(pyenv init -)"
pyenv virtualenvwrapper_lazy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment