我想知道是否有任何方法告诉pip,特别是在需求文件中,安装一个同时具有最小版本(pip install package>=0.2)和不应该安装的最大版本(理论api: pip install package<0.3)的包。
I ask because I am using a third party library that's in active development. I'd like my pip requirements file to specify that it should always install the most recent minor release of the 0.5.x branch, but I don't want pip to ever try to install any newer major versions (like 0.6.x) since the API is different. This is important because even though the 0.6.x branch is available, the devs are still releasing patches and bugfixes to the 0.5.x branch, so I don't want to use a static package==0.5.9 line in my requirements file.
有什么办法可以做到吗?