Use version numbering in requirements.txt #4
Closed
erlenddalen
started this conversation in
Ideas
Replies: 1 comment
-
Coming right up :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When you set requirements without versioning, pip will always install the latest version, but you can never be sure that the new version of a package is compatible with your code (or the code of any of the other requirements).
When you are confident that your code works as expected (all tests passes and the test-coverage is ~= 100%), you should run
pip freeze > requirements.txt
This will make sure that the requirements are frozen on the current versions, so the next guy installing this, or even you install it in the future in a new environment, won't have to worry about package-versions not being compatible.Beta Was this translation helpful? Give feedback.
All reactions