Virtual environment
Activate virtual environment for python
virtualenv -p /usr/bin/python3 venv
source venv/bin/activate
Deactivate virtual environment for python
deactivate
Output installed packages in requirements format
pip freeze
pip freeze > requirements.txt
Install packages
pip install -r requirements.txt