Skip to content

Instantly share code, notes, and snippets.

@alfawal
Last active November 6, 2020 16:23
Show Gist options
  • Save alfawal/098e67c97b9c7495c2a69b2a7602cc69 to your computer and use it in GitHub Desktop.
Save alfawal/098e67c97b9c7495c2a69b2a7602cc69 to your computer and use it in GitHub Desktop.
#
# To create a new virtual enviroment (venv):
# $ python3 -m venv {YOUR NEW VENV FOLDER NAME}
# $ python3 -m venv env
#
# To activate the venv you've created:
# Windows (Powershell):
# > .\{YOUR VENV FOLDER}\Scripts\activate
# > .\env\Scripts\activate
#
# Linux:
# $ source {YOUR VENV FOLDER}/bin/activate
# $ source env/bin/activate
#
# To deactivate (Quit from venv):
# Windows and Linux:
# $ deactivate
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment