【问题标题】:VS Code integrated terminal shows Qt incompatibility when matplotlib script is runVS Code 集成终端在运行 matplotlib 脚本时显示 Qt 不兼容
【发布时间】:2021-11-01 04:03:55
【问题描述】:

每次我尝试在 VSCode 中运行包含 matplotlib 的 Python 脚本时,我都会在集成终端中收到以下消息:

Cannot mix incompatible Qt library (5.14.1) with this library (5.15.2)

从 VSCode 运行脚本:

如果我直接从 VSCode 外部的终端运行脚本,则脚本运行良好。

从终端运行脚本:

知道如何解决这个问题吗?

【问题讨论】:

    标签: python matplotlib visual-studio-code


    【解决方案1】:

    您是否安装了PyQt5 软件包?如果是,您可以尝试卸载或重新安装它吗?

    【讨论】:

    • 嗨@Steven_MSFT。升级PyQt5pyQt5-qt5包,更新VSCode,重启PC解决了这个问题。谢谢。
    猜你喜欢
    • 2020-08-28
    • 1970-01-01
    • 2023-02-18
    • 1970-01-01
    • 1970-01-01
    • 2018-03-09
    • 1970-01-01
    • 1970-01-01
    • 2020-11-05
    相关资源
    最近更新 更多