在最近的the pip resolver was changed之前,我可以很容易地使用pip install foo==来找出包的哪些版本可用:
% pip install hydra-core== --use-deprecated=legacy-resolver
Looking in indexes: https://pypi.org/simple
ERROR: Could not find a version that satisfies the requirement
hydra-core== (from versions: 0.1.4, 0.1.5rc1, 0.1.5, 0.9.0, 0.10.0,
0.11.0rc1, 0.11.0, 0.11.1rc1, 0.11.1, 0.11.2rc1, 0.11.2, 0.11.3, 1.0.0rc1,
1.0.0rc2, 1.0.0rc3, 1.0.0rc4, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5,
1.0.6, 1.1.0.dev1, 1.1.0.dev2, 1.1.0.dev3, 1.1.0.dev4)
ERROR: No matching distribution found for hydra-core==现在这不再起作用了:
% pip install hydra-core==
Looking in indexes: https://pypi.org/simple
ERROR: Could not find a version that satisfies the requirement hydra-core==
ERROR: No matching distribution found for hydra-core==有没有其他快速的方法可以做到这一点?请注意,我不仅仅从pypi.org查找包,我还拥有私有的包注册表。
发布于 2021-03-13 04:29:58
如果您使用的是pip版本的21.0 > x > 20.3,您仍然可以使用带有标志的相同方法来显式使用丢弃的解析器:
pip3 install --use-deprecated=legacy-resolver hydra-core==正如python.org上的announcement中所述,此标志已于2021年1月删除。现在你可以
pip install yolk3k然后
yolk -V hydra-core根据我自己的经验,这并不总是给出任何包的可用版本的完整列表。否则,请参阅this旧帖子,该帖子最近于3天前更新。
https://stackoverflow.com/questions/66606591
复制相似问题