I am using 3.9 Python and when I tried to import in my Python shell, the Matplotlib.pyplot kicked out an error. The error was the following:
import matplotlib.pyplot as plt
ModuleNotFoundError: No module named ‘matplotlib’
- I then went to my Windows power shell and once again installed “matplotlib.” The installation was successful. Thus, when I go to Python and try to import I get an error that the module does not recognize the name.
Any way you can direct me. I have been learning Python the past four weeks…
Gene
C:\Users\Gene>python -m pip install – matplotlib
Requirement already satisfied: matplotlib in c:\users\gene\appdata\local\programs\python\python39\lib\site-packages (3.5.1)
Requirement already satisfied: fonttools>=4.22.0 in c:\users\gene\appdata\local\programs\python\python39\lib\site-packages (from matplotlib) (4.28.5)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\users\gene\appdata\local\programs\python\python39\lib\site-packages (from matplotlib) (1.3.2)
Requirement already satisfied: packaging>=20.0 in c:\users\gene\appdata\local\programs\python\python39\lib\site-packages (from matplotlib) (21.3)
Requirement already satisfied: pyparsing>=2.2.1 in c:\users\gene\appdata\local\programs\python\python39\lib\site-packages (from matplotlib) (3.0.6)
Requirement already satisfied: python-dateutil>=2.7 in c:\users\gene\appdata\local\programs\python\python39\lib\site-packages (from matplotlib) (2.8.2)
Requirement already satisfied: cycler>=0.10 in c:\users\gene\appdata\local\programs\python\python39\lib\site-packages (from matplotlib) (0.11.0)
Requirement already satisfied: pillow>=6.2.0 in c:\users\gene\appdata\local\programs\python\python39\lib\site-packages (from matplotlib) (8.4.0)
Requirement already satisfied: numpy>=1.17 in c:\users\gene\appdata\local\programs\python\python39\lib\site-packages (from matplotlib) (1.21.4)
Requirement already satisfied: six>=1.5 in c:\users\gene\appdata\local\programs\python\python39\lib\site-packages (from python-dateutil>=2.7->matplotlib) (1.16.0)