Table of Contents

Python


Virtual Environment

# must have virtualenv installed, if not:
sudo pip3 install virtualenv
 
# create virtualenv
virtualenv venv -p python3
# macOS: virtualenv venv -p /usr/local/Cellar/python@3.7/3.7.9_2/bin/python3.7
 
# activate venv
source venv/bin/active # or activate.fish
 
# install dependancies
pip install -r requirements.txt
 
# dump dependancies
pip freeze > requirements.txt
 
# to exit
deactivate