UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure
UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure
3D human pose쪽에서는 디버깅을 잘해야하는데, matplotlib로 3d human pose skeleton을 그릴 때 간혹 제목의 에러가 뜨는 경우가 있다. 이상하게 이전 서버에서는 안그랬는데 이 서버에서 이런 문제가 있었고, stackoverflow.com/questions/56656777/userwarning-matplotlib-is-currently-using-agg-which-is-a-non-gui-backend-so
"UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure." when plotting figure wi
I am trying to plot a simple graph using pyplot, e.g.: import matplotlib.pyplot as plt plt.plot([1,2,3],[5,7,4]) plt.show() but the figure does not appear and I get the following message: UserWa...
stackoverflow.com
이 포스트의 가장 많은 추천을 받은 밑의 해결책을 수행하면,
sudo apt-get install python3-tk
# in python script
import matplotlib
matplotlib.use('TkAgg')
TKAgg가 없다는 오류 메시지가 나온다. 제엔장 ㅜ 그래서 포기했었는데 sudo apt-get install python3.7-tk를 하니 해결이 됐다.
sudo apt-get install python3.7-tk
저 스택오버플로우 밑의 이슈에 있었던 것 같은데, 자신이 쓰는 python interpreter의 정확한 버전을 명시해야 하는 듯하다. 추측컨데, 내가 쓰는 가상환경 말고도 기본으로 깔린 python3.x가 있어서 오류가 났던 듯하다.