Skip to content

Instantly share code, notes, and snippets.

@hminnovation
Last active November 10, 2016 21:03
Show Gist options
  • Save hminnovation/1d7a05ee2fd75318f73734696f1efd71 to your computer and use it in GitHub Desktop.
Save hminnovation/1d7a05ee2fd75318f73734696f1efd71 to your computer and use it in GitHub Desktop.
Virtualenv memory jog

Docs: https://virtualenvwrapper.readthedocs.io/en/latest/install.html

(You need Python but you almost certainly already have it)

  • pip install virtualenv
  • pip install virtualenvwrapper
  • nano ~/.zshrc (~/.bashrc if using bash)

Then paste the following export WORKON_HOME=$HOME/.virtualenvs export PROJECT_HOME=$HOME/Devel source /usr/local/bin/virtualenvwrapper.sh

  • ctrl+x && y
  • source ~/.zshrc
  • mkrvirtualenv (To check it's installed correctly)
  • mkvirtualenv {env name you want}
  • workon {the env name you chose

When you're done

  • deactivate

When you want to delete

  • rmvirtualenv {your name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment