Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save halloleo/3a7958ae7ecc76403ef1d00f55a8a2e2 to your computer and use it in GitHub Desktop.
Save halloleo/3a7958ae7ecc76403ef1d00f55a8a2e2 to your computer and use it in GitHub Desktop.
In the Python world the various virtual environment tools use different environment variables to define setting like the base directory of all virtual environments.

Environment variables pointing to the location of virtual environments

In the Python world the various virtual environment tools use different environment variables to define setting like the base directory of all virtual environments. Here a table listing them:

variable used by source
VIRTUALENV_HOME xonsh/vox xonsh doco
WORKON_HOME Virtualenvwrapper Virtualenvwrapper doco
WORKON_HOME Pew Pew doco
WORKON_HOME Pipenv Pipenv doco uses under the hood Pew
PIPENV_VENV_IN_PROJECT Pipenv Pipenv doco boolean to create venvs in current directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment