为什么我尝试在 Windows PC 上安装 PySide2 时总是出现错误?

新手上路,请多包涵

我一直在尝试安装 PySide2 在我的 PC ( Windows 10 64bits ) 上安装 Python 3.8 安装,但我每次都收到错误

我使用了命令 pip install PySide2 。它不适合我。

任何帮助将不胜感激。

错误:

 ERROR: Could not find a version that satisfies the requirement pyside2 (from versions: none)
ERROR: No matching distribution found for pyside2

原文由 Mike Miko 发布,翻译遵循 CC BY-SA 4.0 许可协议

阅读 1.9k
1 个回答

如果您检查 pypi 页面 上的可用文件,您会看到只有 cp35.cp36.cp37 的轮子,所以 python 3.5 到 3.7,没有 3.8 的文件。这就是为什么 pip 找不到版本,因为 pypi 上没有兼容版本。

qt网站 上也没有python 3.8 release

现在你有两个选择:

  1. 尝试按照官方 文档 从源代码安装(我不建议初学者这样做)
  2. 卸载 python 3.8 并安装 3.7,或者使用 python 3.7 的虚拟环境(我会推荐这个,因为你很可能不依赖 python 3.8 和 3.7 之间的区别)

更新

Since the time of writing above answer, a new version of pyside2 was released and pip install should now be able to find a whl for pyside2 如果你有 python 3.8

原文由 FlyingTeller 发布,翻译遵循 CC BY-SA 4.0 许可协议

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题