Python Virtual Enviornment
# Creates a project folder then places virutal environment in `venv` folder inside project
mkdir project
cd project
python -m venv venv
# starts virtual environment
source venv/bin/activate
# stops virtual enviornment
deactivate
# store installed libraries by generating a text file listing dependencies
pip freeze > requirments.txt
# install all dependencies to recreate the developed environemnt
pip install -r requirements.txt
# upgrade pip
pip install --upgrade pip
Links: