【问题标题】:spyder crash after installed PyQt4安装 PyQt4 后 spyder 崩溃
【发布时间】:2018-06-11 00:23:34
【问题描述】:

为什么在 pip install PyQt4 whl from https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyqt4 之后 spyder 和 Ipython 会崩溃?它显示双击 spyder 或 Ipython 图标时没有响应。 我在 Windows 7 中尝试过几次,使用的是 Winpython,版本是 python 3.6。 虽然 spyder 坏了,但 python 默认 shell 可以导入 PyQt4 模块。也许 PyQt4 与 spyder 冲突?

【问题讨论】:

  • 请使用 PyQt5 而不是 PyQt4。 Spyder 应该可以与 PyQt4 一起使用,但这些绑定现在已经过时了。

标签: python pyqt4 spyder


【解决方案1】:

嗯,如果你尝试让它与 PyQt4 一起运行,可能是“pip uninstall PyQt5”,甚至在此之后手动删除目录“python-3.6.4.amd64\Lib\site-packages\PyQt5”。

【讨论】:

    【解决方案2】:

    根据我的经验,如果您安装了 Spyder 3 并且同时安装了 PyQt4 和 PyQt5 库,这会导致启动 Spyder 出现问题,这就是它崩溃的原因。尝试将 Spyder 3 更新到 Spyder 4 或卸载 PyQt5。

    【讨论】:

    • 没有理由降级 PyQt 版本。只需升级并将 PyQt4 发送到存档。
    猜你喜欢
    • 2019-07-22
    • 1970-01-01
    • 1970-01-01
    • 2019-04-02
    • 2020-07-22
    • 1970-01-01
    • 1970-01-01
    • 2013-07-07
    • 1970-01-01
    相关资源
    最近更新 更多