473,324 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

pylab doesn't find numpy on Windows

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
from pylab import *


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.

Jun 13 '06 #1
2 2695
Le 13-06-2006, timw.google <ti**************@nvl.army.mil> nous disait:
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
from pylab import *

<snip> 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.
--
Alexandre Fayolle LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian: http://www.logilab.fr/formations
Développement logiciel sur mesure: http://www.logilab.fr/services
Python et calcul scientifique: http://www.logilab.fr/science
Jun 13 '06 #2
Thanks. That did it.

Alexandre Fayolle wrote:
Le 13-06-2006, timw.google <ti**************@nvl.army.mil> nous disait:
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
> from pylab import *

<snip>
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.
--
Alexandre Fayolle LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian: http://www.logilab.fr/formations
Développement logiciel sur mesure: http://www.logilab.fr/services
Python et calcul scientifique: http://www.logilab.fr/science


Jun 13 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Dr. Colombes | last post by:
On my home laptop computer, I'm trying to install the appropriate modules so that Python version 2.3.3 and IDLE version 1.0.2 (with an "import matplotlib.matlab" statement) can produce nice...
2
by: Charles Krug | last post by:
List: I'm trying to us pylab to see what I'm doing with some DSP algorithms, in case my posts about convolution and ffts weren't giving it away. I've been using pylab's plot function, but I'm...
0
by: ehenlin | last post by:
Hi, How to make pylab work together with py2exe? Have anyone managed to build a stand alone exe with pylab package? I have made a small test script but that does not work. setup.py...
14
by: amitsoni.1984 | last post by:
hi, I have some values(say from -a to a) stored in a vector and I want to plot a histogram for those values. How can I get it done in python. I have installed and imported the Matplotlib package...
2
by: =?ISO-8859-1?Q?Sch=FCle_Daniel?= | last post by:
Hello NG, given this call to roots funtion from pylab In : roots() Out: array() as far as I understand it stands for a0+a1*x+a2*x^2 in the above case it yields 2x^2+2x = 2x(1+x) and the...
6
by: =?ISO-8859-1?Q?Sch=FCle_Daniel?= | last post by:
Hello, In : def simple_integral(func,a,b,dx = 0.001): ....: return sum(map(lambda x:dx*x, func(arange(a,b,dx)))) ....: In : simple_integral(sin, 0, 2*pi) Out: -7.5484213527594133e-08 ...
0
by: Phil | last post by:
I am rather new to python and loaded recent versions of numpy and pylab on windowsxp. It seems that the default dtype for zeros in pylab is None while in numpy it is float. Is there a reason...
3
by: Caren Balea | last post by:
Hello, I'm newbie to python. So far, I'm a bit disappointed. It's awful to set Python up to work. It's not working!!! Ok, calm down. Here are my settings: I'm using Windows XP machine and...
7
by: W. eWatson | last post by:
I copied the following code from a matplotlib tutorial, and it fails. I'm using python 2.4 on Win XP. It's matplotlib-0.98.3.win32-py2.4exe. It fails in IDLE with a small window showing a runtime...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shćllîpôpď 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.