[Tutor] What is wrong with my Python program that causes it to run but not give results?

Marc Tompkins marc.tompkins at gmail.com
Tue Oct 25 19:20:39 EDT 2016


On Oct 25, 2016 3:07 PM, "Ed Troy" <etroy at aeroconsult.com> wrote:
>I get an error message:
> edward at ubuntu:~$ python LED_model_utf8.py LED_IV.txt
> Traceback (most recent call last):
>   File "LED_model_utf8.py", line 4, in <module>
>     import matplotlib.pyplot as plt
> ImportError: No module named matplotlib.pyplot
>

That last line tells you what you need to know:  Python can't find the
pyplot module, which is part of matplotlib.  In other words, you're missing
at least one of the required dependencies; there may be others once you've
resolved this one.

The tutorial you're following should tell you how to install the
dependencies;  either you've missed a step, or the author has.  If it's not
in the tutorial,  Google "matplotlib" for instructions on installing it.


More information about the Tutor mailing list