pylab doesn't find numpy on Windows

T

timw.google

Hi all.

I installed matplotlib 0.87.3 under Python 2.4 on both Linux (FC3) and
Windows XP Pro. On the linux install, I can import pylab, but when I
try to do the same thing on the Windows installation, I get

Traceback (most recent call last):
File "<pyshell#7>", line 1, in -toplevel-
from pylab import *
File "C:\Python24\Lib\site-packages\pylab.py", line 1, in -toplevel-
from matplotlib.pylab import *
File "C:\Python24\Lib\site-packages\matplotlib\pylab.py", line 196,
in -toplevel-
import cm
File "C:\Python24\Lib\site-packages\matplotlib\cm.py", line 5, in
-toplevel-
import colors
File "C:\Python24\Lib\site-packages\matplotlib\colors.py", line 33,
in -toplevel-
from numerix import array, arange, take, put, Float, Int, where, \
File "C:\Python24\Lib\site-packages\matplotlib\numerix\__init__.py",
line 60, in -toplevel-
from Numeric import *
ImportError: No module named Numeric

I have numpy 0.9.8 installed in both places too.

Thanks for any help.
 
A

Alexandre Fayolle

Le 13-06-2006 said:
Hi all.

I installed matplotlib 0.87.3 under Python 2.4 on both Linux (FC3) and
Windows XP Pro. On the linux install, I can import pylab, but when I
try to do the same thing on the Windows installation, I get
ImportError: No module named Numeric

I have numpy 0.9.8 installed in both places too.

it is trying to load Numeric python. You need to configure matplotlib to
use numpy by saying

numerix : numpy

in the matplotlibrc file.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,470
Messages
2,571,809
Members
48,797
Latest member
PeterSimpson
Top