When doing projects in python there are a few rules I’ve begun to follow on my projects.
- On macOS use
pyenvto manage python versions because Homebrew updates will force you to update too quickly sometimes.
- Use a virtual environment to install your requirements which are in
./requirements/folder. There is a base set of requirements in
./requirements/base.txtand two files
production.txtwhich include (or not) requirements needed for those environments. Others can also be added