SyntaxFix
Write A Post
Hire A Developer
Questions
You can do:
$ pip install "package>=0.2,<0.3"
And pip will look for the best match, assuming the version is at least 0.2, and less than 0.3.
pip
This also applies to pip requirements files. See the full details on version specifiers in PEP 440.