pip 查看某个包有哪些版本

4,762 阅读1分钟

输入 pip install xxx==,例如:

pip install PySide2==

得到输出:

Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
ERROR: Could not find a version that satisfies the requirement PySide2== (from versions: 0.0.0a1, 5.11.0, 5.11.1, 5.11.2, 5.12.0, 5.12.1, 5.1
2.2, 5.12.3, 5.12.4, 5.12.5, 5.12.6, 5.13.0, 5.13.1, 5.13.2, 5.14.0, 5.14.1, 5.14.2, 5.14.2.1, 5.14.2.2, 5.14.2.3, 5.15.0)
ERROR: No matching distribution found for PySide2==

这样就知道有哪些版本了。