top | item 32142280

(no title)

anacoluthe | 3 years ago

What if the depedencies you pinned have non-pinned depedencies?

packageA==1.0.0 depends itself on packageB

Therefore, you can find yourself with a different set of deps. Had a bug like this once.

discuss

order

im3w1l|3 years ago

Pip freeze will pin explicit as well as transitive dependencies

fnord123|3 years ago

It's a hassle to do this correctly and upgrade the dependencies. Use poetry.

earthboundkid|3 years ago

This is not actually true. :-) Pip will install transitive deps from a requirements file unless you add the “no deps” flag. Pip freeze doesn’t pin anything. It just dumps stuff into a text file. If it’s a complete list, it has the side effect of pinning, but that’s not guaranteed by pip freeze in any way.

japanuspus|3 years ago

You just pin the sub-dependency. This is builtin functionality for all the python environment managers.