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

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

在使用matplotlib.pylab绘图时出现这个错误

解决This application failed to start because it could not find or load the Qt platform plugin
我看的基本上是Anaconda\Lib\site-packages\PyQt5\Qt\plugins(这是我的安装路径),在此文件夹下找到platforms文件夹,然后拷贝整个文件夹,将其放到与python.exe相同的路径下,这时候就可以了。

但是找找我的Anaconda\Lib\site-packages\PyQt5路径下没有Qt啊!!啊啊!!找了半天我的路径是这个H:\python爬虫\Anaconda3\pkgs\qt-5.9.6-vc14h1e9a669_2\Library\plugins\platforms,然后把platforms拷贝到H:\python爬虫\Anaconda3下也就是与python.exe同一目录下就行了。
OK!

你可能感兴趣的:(python学习)