Re:Python Pip 20.3 Released with new resolver
by jshen on Monday November 30, 2020 @06:53PM
(#25260598)
How do you validate versions against the constraint file? I read your original link a few times and didn’t see it.
[ Parent
| on HN ]
Re:Python Pip 20.3 Released with new resolver
by ptx on Monday November 30, 2020 @07:59PM
(#25261035)
pip install -r requirements.txt -c constraints.txt
You can also, thanks to the weird way requirements.txt works, put the line "-c constraints.txt" in requirements.txt. In that case you don't have to specify it when you run pip.
That should apply the constraints when installing packages. I don't know if there's also a way to validate what's already installed.