Other Things
Virtual Environments
Virtual environments allows you to keep multiple python projects' installed packages separate from each other.
Create a new virtual environment
python -m venv venvThis creates a venv directory.
Now, we can install things only in this directory and they won't be installed anywhere else on our machine.
Activate a virtual environment
source venv/bin/activateThis should add (venv) to your terminal prompt.
Deactivate a virtual environment
deactivateInstalling 3rd-Party Packages
pip install flaskInstall multiple packages
pip install flask requests geopyLast updated
Was this helpful?