by jmconfuzeus · 4y ago · 0 comments
Instead, install pip-tools[0] then use the pip-compile command.
Why?
pip freeze will also pin dependencies of your dependencies, which makes your requirements.txt hard to read and extend.
Never manually create requirements.txt either because a programmer's job is to automate boring tasks like dependency pinning.
And I fully agree on the tools. I personally would always use something like pip-tools or poetry, but it's not always an option to use them, unfortunately.