运行matplotlib时,出现了“This application failed to start because it could not find or load the Qt platform

系统: Ubuntu17.04+Pycharm+Anaconda配置

方法来源:https://blog.csdn.net/sinat_23137713/article/details/53018104

方法:

进入/anaconda2/bin,执行(提示:安装过程需要从国外网站下载,所以如果下载不动或者中断,你需要科学上网“latern”)

conda remove qt
conda remove pyqt
conda install qt
conda install pyqt

踩大坑过程:

不要尝试使用 pip install python-qt5 ,原因可能是pyqt5使用c++的包,而pip主要是python相关问题。因此用conda更好一些。

其中pip,conda的区别可参考如下帖子:

https://www.cnblogs.com/piperck/p/5057291.html

https://blog.csdn.net/capecape/article/details/78868511

发布了36 篇原创文章 · 获赞 0 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/weixin_38102912/article/details/81256519