how to install matplotlib.pyplot

I tried to run following code in SPSS, but
I got error message:
import matplotlib.pyplot as plt
ModuleNotFoundError: No module named ‘matplotlib’

Can anyone help me to install it? thanks

begin program.
import matplotlib.pyplot as plt
plt.plot([1,2,3,4])
plt.ylabel(‘some numbers’)
plt.show()
end program.

Related:

Leave a Reply