运行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

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值