Skip to content

Instantly share code, notes, and snippets.

@zpvk
Last active September 24, 2021 13:23
Show Gist options
  • Save zpvk/b58cd4b092e51b7577489025aa5de23f to your computer and use it in GitHub Desktop.
Save zpvk/b58cd4b092e51b7577489025aa5de23f to your computer and use it in GitHub Desktop.
PYTHON VIRTUAL ENVIRONMENTS

Creating a Virtual Environment

To create a virtual environment using Python use the following command:
python -m venv <envname>
To activate the environment, use the command:
source env/bin/activate
To deactivate or leave the environment, run the command:
deactivate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment