jupyter使用%matplotlib qt报错ImportError: Failed to import any qt binding正确解决办法

问题描述

在使用jupyter notebook或者jupyter lab时,为了将画出的图形进行操作,需要单独将图形显示出来,结果出现ImportError: Failed to import any qt binding错误:


解决方案:

需要在环境中安装PyQt5、PySide2模块:

pip install PyQt5 -i https://pypi.mirrors.ustc.edu.cn/simple
pip install -U PySide2 -i https://pypi.mirrors.ustc.edu.cn/simple

安装成功后,重启应用运行即可结局问题。

你可能感兴趣的:(qt,jupyter,matplotlib,python)