This application failed to start because no Qt platform plugin could beinitialized. Reinstalling the application may fix this problem. Available platform plugins are: direct2d, minimal, offscreen, windows.
在里面和外面搜了很多,最后在视频网站的评论区中找到了方法。
import os
import PySide2
dirname = os.path.dirname(PySide2.__file__)
plugin_path = os.path.join(dirname, 'plugins', 'platforms')
os.environ['QT_QPA_PLATFORM_PLUGIN_PATH'] = plugin_path
把这段代码添加上去就可以了