Skip to content

Instantly share code, notes, and snippets.

@pictolearn
Last active February 1, 2020 07:13
Show Gist options
  • Save pictolearn/2577e976731c6d7987ce4577018cbabf to your computer and use it in GitHub Desktop.
Save pictolearn/2577e976731c6d7987ce4577018cbabf to your computer and use it in GitHub Desktop.
Python 3 Working with Virtual Environments
# Virtualenv is a tool used to create an isolated Python environment. This environment has its own installation directories that doesn't share libraries with other virtualenv environments (and optionally doesn't access the globally installed libraries either).
# Ensure PYTHON3 is installed
python3 --version
# Create a virtual environment as follows
python3 -m venv ~/Pictolearn/venv
# Activating a virtual environment which was created
source ~/Pictolearn/venv/bin/activate
# The above command should change the prompt to
(venv) Pictolearn-MBP-2 flask-playground
# Deactivating the VM is
deactivate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment