[Python] VSCode says there is no module 'matplotlib'

Discussão em 'Python' iniciado por Stack, Fevereiro 12, 2025.

  1. Stack

    Stack Membro Participativo

    I just installed matplotlib onto my Windows computer using Pip and entering the following into the command prompt:

    pip install matplotlib


    Everything has been installed correctly from the looks of it, but after opening up VSCode, the following line gives me a problem still:

    import matplotlib.pyplot as plt


    Every time I try to run my program I get this printed to the console:

    ModuleNotFoundError: No module named 'matplotlib'

    Not sure what to do here as I thought I had matplotlib installed correctly.

    Continue reading...

Compartilhe esta Página