ModuleNotFoundError: No module named 'matplotlib'
use pip3 install matplotlib
to install matlplot lib.
By default, pip will install those package for 2.7 as it the native one.
using pip3 makes it specific for python 3, and make sure you have only one version of python 3
Execute this from file this will work:-
import pip
pip.main(["install","matplotlib"])
this does not work