Matplotlib更新后无法使用。该应用程序无法启动,因为它找不到或加载QT平台插件“ Windows”。

发布于 2025-02-08 06:25:33 字数 435 浏览 4 评论 0原文

代码:

import matplotlib.pyplot as plt
plt.scatter([1,1],[2,2])
plt.show()

错误:

此应用程序无法启动,因为它找不到或加载 QT平台插件“ Windows” “ d:\ anaconda \ envs ... \ lib \ site-packages \ qt-5.9.7-vc14h73c81de_0 \ library \ plugins \ Plugins \ Platforms”。

可用的平台插件为:Direct2D,最小,屏幕外,Windows。

重新安装应用程序可能会解决此问题。

此类错误首先发生在VSCODE更新之后,然后在另一个更新后消失。最近,它再次发生在VSCODE版本1.68.1之后。

Code:

import matplotlib.pyplot as plt
plt.scatter([1,1],[2,2])
plt.show()

Error:

This application failed to start because it could not find or load the
Qt platform plugin "windows" in
"D:\Anaconda\envs...\Lib\site-packages\qt-5.9.7-vc14h73c81de_0\Library\plugins\platforms".

Available platform plugins are: direct2d, minimal, offscreen, windows.

Reinstalling the application may fix this problem.

Such error first occurred after the update of VSCode, and then disappeared after another update. Recently, it occurred again after the version 1.68.1 of VSCode.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

对不⑦ 2025-02-15 06:25:33

我分别以1.68.0和1.68.1的版本运行了此代码,但我没有遇到这个问题。我认为这不是Vscode的问题。

此应用程序无法启动,因为它找不到或加载QT平台插件“ Windows”。

这是由路径错误引起的。尝试重新安装Conda环境。

I ran this code in versions 1.68.0 and 1.68.1 respectively, and I didn't encounter this problem. I don't think this is the problem with vscode.

enter image description here

This application failed to start because it could not find or load the Qt platform plugin "windows" in ""

This is caused by a path error. Try reinstalling the CONDA environment.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文