News for hackers. Stuff that matters.
Re:How Python virtual environments work by selcuka on Tuesday March 14, 2023 @12:38AM (#35147507)
Not sure why repeatable deployments would be a problem. You can pin all dependencies by issuing a

    pip freeze > requirements.txt
if you want. The only catch is you should be using a similar architecture and Python version in both development and production.

This would also pin a few non-project dependencies such as `disttools` but that shouldn't be a problem.

Edit: TIL that pip constraints is a thing. See the comment posted by oblvious-earth for an even better approach.

There are no comments on this comment yet.