활연개랑

[ERROR 해결] UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure. plt.show() 본문

Python

[ERROR 해결] UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure. plt.show()

승해tmdhey 2022. 4. 11. 13:23
반응형

다음 에러는 matplotlib에서 GUI 창에 plot을 띄우려고 하는데, GUI를 띄우기위한 plot 파이썬 모듈이 없을 때 나타납니다.

 UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.
  plt.show()

 

따라서, Qt5Agg, GTKAgg, Qt4Agg, 또는 pyqt5를 설치해서 다음과 같은 오류를 해결할 수 있습니다.