pythonvisual-studiomatplotlib

Matplotlib will not import even though it is installed. Using visual studio code


Here is a picture of my terminal.

I cannot figure out what is going on, I've spent hours trying to make this import work. Please help


Solution

  • Aside from the obvious of uninstalling and reinstalling matplotlib, I would recommend clicking the bottom left corner of VSCode and make sure it is pointed at your virtual environment. Even though in your terminal you are in a venv, it looks as if VSCode may not be.