Backend Qt5Agg is interactive backend. Turning interactive mode on.
程序员文章站
2022-05-28 12:58:18
...
运行程序时突然出现下面错误
Backend Qt5Agg is interactive backend. Turning interactive mode on.
查找后发现解决办法:
第一种:将matplotlib的backend设置为非交互式。
D:\Anaconda3\envs\[your environment]\Lib\site-packages\matplotlib\mpl-data\matplotlibrc
## You can also deploy your own backend outside of matplotlib by
## referring to the module name (which must be in the PYTHONPATH) as
## 'module://my_backend'.
#backend : Agg
backend : Agg
如果不行,第二种:pip install opencv-python。