To set up your environment, copy paste the following commands
python -m venv venv &&
source venv/bin/activate &&
pip install -r requirements.txt &&
deactivate
Run each time when developing:
- Start your virtual env
source venv/bin/activate
. - ???
- Profit
- Close your virtual env with
deactivate
.
Useful commands:
pip freeze > requirements.txt
to update requirements file.black file_name
to autoformat file for best practice python formatting.