>>> from matplotlib import pyplot as plt
Traceback (most recent call last):
File \"\", line 1, in
from matplotlib imp
Just to add to ThePredator answer:
I had both 32 bit and 64 bit Python 2.7 installed. When I ran python from cmd, Windows would load 32 bit python, but when trying to run something with matplotlib, this error would pop up. I have a 64 bit machine
What I did to solve
pip
, so make sure Python directory is in your PATH AND just enter pip install matplotlib
in a command prompt and you should be fine.