2 ms·
You can use a tool like `pip-compile`[1] to freeze a requirements-style input down to precise version numbers, but I'm not sure if you can tell it to select onl
by woodruffw 5y ago
You can use a tool like `pip-compile`[1] to freeze a requirements-style input down to precise version numbers, but I'm not sure if you can tell it to select only the "minimum viable" version for each dependency. It might be easier to assume (perhaps incorrectly) that all dependencies are semver, freeze them, and then re-write them down to their minimal versions and re-install.
[1]: https://github.com/jazzband/pip-tools https://github.com/jazzband/pip-tools