ModuleNotFoundError: No Module Named 'matplotlib'
I'm trying to run a python program that requires matplotlib, which I've already installed via pip. I am running Python 3.6 locally on my Mac, with my .bash_profile updated to refle
Solution 1:
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
Solution 2:
Execute this from file this will work:-
import pip
pip.main(["install","matplotlib"])
this does not work
Post a Comment for "ModuleNotFoundError: No Module Named 'matplotlib'"