PDA

View Full Version : No module named matplotlib.pyplot after update to python 3.2 Ubuntu 12.04



surfcast23
June 25th, 2012, 01:38 PM
After updating to python 3.2 I get the following error when I try to run a script using IDLE


No module named matplotlib.pyplotI can import matplotlib in the terminal using python 2.7.3, but not python3. The module is installed in

/usr/lib/pymodules/python2.7/matplotlib/pyplot.pyc -> /usr/share/pyshared/matplotlib/pyplot.py My guess is that python 3.2 and and IDLE do not know where to look for Matplotlib.pyplot. I would like to ask if someone can explain to me how to have python 3.2 find and import matplotlib and its associated modules. Thanks in advance.

surfcast23
June 26th, 2012, 10:41 AM
Bump

Zugzwang
June 26th, 2012, 12:50 PM
Did you actually install the Python3-version of the library?

surfcast23
June 26th, 2012, 01:01 PM
I downloaded what was available in the software center

Zugzwang
June 26th, 2012, 01:14 PM
The answer appears to be here: http://stackoverflow.com/questions/8605847/how-to-install-matplotlib-with-python3-2

surfcast23
June 26th, 2012, 01:26 PM
I did see that, but was hoping that a package might have been released through Ubuntu in the time since that post. Thank you

MadCow108
June 26th, 2012, 10:11 PM
there is no official matplotlib release supporting python3

but the current git head does, so the next release 1.2, will very likely have python3 support. But its still while away.

surfcast23
June 27th, 2012, 12:56 PM
Thank you