Fork me on GitHub

完美解决 python ImportError: Failed to import any qt binding

问题背景

在ContOS服务器上测试项目

解决方案

谷歌查询

解决步骤

  1. 降低matplotlib版本至2.2.2
pip3 install matplotlib==2.2.2
  1. 出现新的问题,ImportError: Matplotlib qt-based backends require an external PyQt4, PyQt5,PySide or PySide2 package to be installed, but it was not found.
    解决方法:安装PyQt5
pip3 install PyQt5
  1. 安装后仍出现2中的问题,应该是缺少PySide
    解决方法,安装PySide
pip3 install PySide
  1. 安装PySide时报错:Complete output (1 lines):only these python versions are supported: [(2, 6), (2, 7), (3, 2), (3, 3), (3, 4)]
    解决方法:安装PySide2
pip3 install PySide2
posted @   马一特  阅读(5117)  评论(0编辑  收藏  举报
编辑推荐:
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 单线程的Redis速度为什么快?
· SQL Server 2025 AI相关能力初探
· 展开说说关于C#中ORM框架的用法!
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
点击右上角即可分享
微信分享提示

目录