- open terminal
- pip install virtualenv
- nav to directory
- python3 -m venv "venv name"
- source "venv name"/bin/activate
The console user will now be: ("venv name")laptopname $
For getting out the virtual environment, just type deactivate
pip install -r requirements.txt
"venv name"/bin/jupyter lab -> runs the jupyter notebooks (sometimes --no-browser is required)
- source "venv name"/bin/activate
- pip freeze > requirements.txt