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 venv
This 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/activate
This should add (venv)
to your terminal prompt.
Deactivate a virtual environment
deactivate
Installing 3rd-Party Packages
pip install flask
Install multiple packages
pip install flask requests geopy
Last updated
Was this helpful?