Skip to content

Instantly share code, notes, and snippets.

@olecksamdr
Last active January 29, 2020 18:41
Show Gist options
  • Save olecksamdr/082a14ef827498fed3d8aefe3d7afe69 to your computer and use it in GitHub Desktop.
Save olecksamdr/082a14ef827498fed3d8aefe3d7afe69 to your computer and use it in GitHub Desktop.
Create, Activate, Check, Deactivate Python Virtual Environments

Python virtual envirment

Create virtual envirment

python3 -m venv env

Activate vitual envirment

source ./env/Scripts/Activate

Confirm

You can confirm you’re in the virtual environment by checking the location of your Python interpreter, it should point to the env directory.

 which python

Deactivate

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