Advertisement
Guest User

Untitled

a guest
Jul 26th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. # Install pyenv, pyenv-virtualenv
  2. $ brew install pyenv pyenv-virtualenv
  3.  
  4. # Setup
  5. # Add the following to your bashrc/zshrc file.
  6.  
  7. if which pyenv > /dev/null; then
  8. eval "$(pyenv init -)";
  9. export PYENV_ROOT=/usr/local/var/pyenv
  10. export PATH="$PYENV_ROOT/bin:$PATH"
  11. fi
  12.  
  13. export PYENV_VIRTUALENV_DISABLE_PROMPT=1
  14. if which pyenv-virtualenv-init > /dev/null; then eval "$(pyenv virtualenv-init -)"; fi
  15. pyenv virtualenvwrapper_lazy
  16.  
  17. # If you're working on a project which uses PIL or Pillow, you'll need to build/install differently.
  18. # Instead of the normal:
  19. $ pyenv install 2.7.12
  20. # You'll need to use:
  21. $ PYTHON_CONFIGURE_OPTS="--enable-unicode=ucs2" pyenv install 2.7.12
  22.  
  23. # When adding the virtualenv to Pycharm, you'll find them in /usr/local/var/pyenv/versions
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement