Last active
February 1, 2020 07:13
-
-
Save pictolearn/2577e976731c6d7987ce4577018cbabf to your computer and use it in GitHub Desktop.
Python 3 Working with Virtual Environments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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