I'm trying to import and run matplotlib in python but I get a error message:
The version I'm running are:
Python 3.10.4
matplotlib 3.5.2
virtualenv 20.14.1
(I'm using a virtualenv)
My code:
import matplotlib
import matplotlib.pyplot as plt
print('matplotlib: {}'.format(matplotlib.__version__))