Can somebody help me with this problem?
Python recognises matplotlib from the command line:
import matplotlib matplotlib.__version__ '3.4.3'
But not from a script
This is my script (to keep it simple):
import matplotlib.pylab as plt import numpy as np
These are the errors:
Traceback (most recent call last):
File "C:/Program Files/Python39/Scripts/matplotlib.py", line 1, in <module>
import matplotlib.pylab as plt
File "C:\Program Files/Python39/Scripts\matplotlib.py", line 1, in <module>
import matplotlib.pylab as plt
ModuleNotFoundError: No module named 'matplotlib.pylab';
'matplotlib' is not a package