[Tutor] Matplotlib.pyplot
Diana Katz
diana.katz at gmail.com
Fri Apr 14 18:58:49 EDT 2023
I am getting an error when i run my code that i don't have numpy but it
shows i already installed it. Any advise?
C:\Users\merma\PycharmProjects\pythonProject1\venv\Scripts\python.exe
C:\Users\merma\PycharmProjects\pythonProject1\main.py Traceback (most
recent call last): File
"C:\Users\merma\PycharmProjects\pythonProject1\main.py", line 3, in
<module> import numpy as np ModuleNotFoundError: No module named
'numpy' Process finished with exit code 1
import numpy as np
print("numpy version: " + np.__version__)
numpy version: 1.23.5
shows i already installed it
On Fri, Apr 14, 2023 at 5:16 PM Mats Wichmann <mats at wichmann.us> wrote:
> On 4/14/23 15:12, Diana Katz wrote:
> > I have tensorflow now installed but I’m struggling to install matplotlib
> .
> > This is my error:
> >
> >
> > C:\Users\merma>py -m pip install matplotlib.pyplot
> >
> > ERROR: Could not find a version that satisfies the requirement
> > matplotlib.pyplot (from versions: none)
> >
> > ERROR: No matching distribution found for matplotlib.pyplot
>
>
> Hmmm, I think pyplot is an included part of matplotlib, so not sure
> anything further needs installing? Presumably someone here knows better.
>
> Ah... there seem to be answers on stack overflow. Hopefully even
> correct ones... :)
>
> https://stackoverflow.com/questions/74527084/how-can-i-install-pyplot
>
>
>
>
More information about the Tutor
mailing list