This application failed to start because it could not find or load the Qt platform plugin “windows“
问题描述:在VScode运行代码时,出现如下提示:This application failed to start because it could not find or load the Qt platform plugin “windows” in “”.Available platform plugins are: direct2d.Reinstalling the application
·
问题描述:
在VScode运行代码时,出现如下提示:
This application failed to start because it could not find or load the Qt platform plugin “windows” in “”.
Available platform plugins are: direct2d.
Reinstalling the application may fix this problem.**
This application failed to start because it could not find or load the Qt platform plugin "windows"
in "".
Available platform plugins are: direct2d.
Reinstalling the application may fix this problem.
原因分析:
代码中并未使用QT,但问题提示指向QT
经查阅Google,发现问题是matplotlib的显示窗口被占有,与QT发生冲突造成代码bug。
解决方案:
在代码顶部添加下面两行:
import matplotlib
matplotlib.use('TKAgg')
更多推荐
所有评论(0)