Skip to content

Instantly share code, notes, and snippets.

@bryanrieger
Last active August 12, 2025 20:11
Show Gist options
  • Select an option

  • Save bryanrieger/28c47e771aa301295337a05cf129d720 to your computer and use it in GitHub Desktop.

Select an option

Save bryanrieger/28c47e771aa301295337a05cf129d720 to your computer and use it in GitHub Desktop.
Using Python Virtual Environments

Using Python Virtual Environments

Assuming our virtual environments are stored in ~/.venv:

export VENV="${HOME}/.venv"

Create a new virtual environment, in the case 'drawbot':

python -m venv $VENV/drawbot   

Activate a virtual environment:

source $VENV/drawbot/bin/activate

Deactivate a virtual environment:

deactivate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment