Marc Henning
Marc Henning

Reputation: 45

No module named matplotlib after install

I am trying to using matplotlib with no luck.

To install I typed

pip install matplotlib

after install I checked pip list and matplotlib is in the list vers. 2.0.2

Then I try to import it with

import matplotlib.pyplot as plt 

and I get the error "No module named matplotlib"

I am completely at a loss any help would be appreciated.

Upvotes: 2

Views: 7700

Answers (3)

pavitran
pavitran

Reputation: 814

I was having the same issue while working a DL course, the issue was actually with numpy on Windows 10. You can try downgrading the numpy version or use anaconda

Upvotes: -1

u8129
u8129

Reputation: 177

You can try installing matplotlib via anaconda distribution.

conda install matplotlib

Upvotes: 0

vivek jha
vivek jha

Reputation: 354

I faced the same issue now and was resolved by:

  1. pip uninstall matplotlib
  2. sudo apt-get install python-matplotlib

Upvotes: 2

Related Questions