[Python] Cant create an image using matplotlib and python in VsCode (UserWarning:...

Discussão em 'Python' iniciado por Stack, Março 21, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to create a graph using matplotlib and I keep getting an error saying: "UserWarning: FigureCanvasAgg is non-interactive, and thus cannot be shown plt.show()". I've tried installing tkinter as I read that could help but when I try running it, it says "ModuleNotFoundError: No module named 'tkinter'. I've also tried install PyQt6 but that didn't seem to help either. Does anyone have any possible fixes so I can get an image to display in VsCode or at least to export the image?

    I've tried installing tkinter using (pip install tk) as I read that could help but when I try running it, it says "ModuleNotFoundError: No module named 'tkinter'. I've also tried install PyQt6 but that didn't seem to help either.

    Continue reading...

Compartilhe esta Página