When installing with pip -- or by specifying through requirements.txt -- how do I specify that the version is either:
- ==x.y, or
- >=a.b
where x.y < a.b.
For example, I want a package to be either ==5.4 or >=6.1.
Let's say I need to do this because:
- I want my program to run on Python>=3.7
- The last package supported for Python 3.7 is "5.4"
- For Python>3.7, the latest package is "6.1.*"
- I am avoiding "6.0.*" because of a slight incompatibility, which had been fixed in "6.1.*", and I want pipto not spend any time trying to check the "6.0.*" line
 
     
    