Skip to content

Instantly share code, notes, and snippets.

@eevmanu
Last active May 14, 2022 06:48
Show Gist options
  • Save eevmanu/346396ad223c10d8bdb4b6518724f945 to your computer and use it in GitHub Desktop.
Save eevmanu/346396ad223c10d8bdb4b6518724f945 to your computer and use it in GitHub Desktop.
virtualenv + virtualenvwrapper setup (from almost 8 years ago)

Virtualenv + Wirtualenvwrapper

Check python binary to use

$ export VIRTUALENVWRAPPER_PYTHON=/path/to/.../python
$ export VIRTUALENVWRAPPER_PYTHON=${HOME}/bin/python

Path where virtual environments will be created

$ export WORKON_HOME=${HOME}/.virtualenvs
$ mkdir -p ${WORKON_HOME}

Call setup script from your .bashrc or .profile

# virtualenvwrapper installed by global pip
$ source /usr/local/bin/virtualenvwrapper.sh
# virtualenvwrapper installed by local pip
$ source ${HOME}/.local/bin/virtualenvwrapper.sh

more info:

but nowadays I prefer:

still not sure about:

  • poetry
  • pipenv
  • pdm (👈 I like this a bit more because is simpler to use)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment