Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Install pyenv, pyenv-virtualenv
- $ brew install pyenv pyenv-virtualenv
- # Setup
- # Add the following to your bashrc/zshrc file.
- if which pyenv > /dev/null; then
- eval "$(pyenv init -)";
- export PYENV_ROOT=/usr/local/var/pyenv
- export PATH="$PYENV_ROOT/bin:$PATH"
- fi
- export PYENV_VIRTUALENV_DISABLE_PROMPT=1
- if which pyenv-virtualenv-init > /dev/null; then eval "$(pyenv virtualenv-init -)"; fi
- pyenv virtualenvwrapper_lazy
- # If you're working on a project which uses PIL or Pillow, you'll need to build/install differently.
- # Instead of the normal:
- $ pyenv install 2.7.12
- # You'll need to use:
- $ PYTHON_CONFIGURE_OPTS="--enable-unicode=ucs2" pyenv install 2.7.12
- # 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