[Tutor] What is wrong with my Python program that causes it to run but not give results?
Ben Finney
ben+python at benfinney.id.au
Tue Oct 25 19:19:21 EDT 2016
Ed Troy <etroy at aeroconsult.com> writes:
> I found a very useful Python program for calculating the Spice
> parameters for a LED. I have Python3 and the various modules loaded
> onto my Ubuntu machine.
Which libraries, specifically, have you installed?
> When I type python LED_model_utf8.py LED_IV.txt, 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
This error implies that there's no library available providing
‘matplotlib’. Have you installed the third-party Matplotlib library,
into the same environment?
--
\ “What if the Hokey Pokey IS what it's all about?” —anonymous |
`\ |
_o__) |
Ben Finney
More information about the Tutor
mailing list