[PYTHON MATRIX-SIG] Re: Newbie questions about NumPy under PythonWin

Tom Short ta.short@pti-us.com
Mon, 20 Jan 1997 13:20:44 -0500 (EST)


At 05:13 PM 1/20/97 +0100, Christian Tismer wrote:
>> (1) I am having trouble running the numeric module under PythonWin. Typing
>> "from Numeric import *" does not work (it says no module named numeric).
>> I'm guessing that the PythonPath is not set right, but I can't find a way
>> to change it under PythonWin.
>The NumPy version for PythonWin is AFAIK a bit outdated but working
>well.

What is out of date? How hard is it to update from the current NumPy
sources? The NumPy web page is not very clear on what to do for the Win32
platform. 

>It relies on the ni module, at least in PythonWin b4 and b5.
>So try import ni, Numeric
>Import * does not work because you cannot import * from a package.

import ni, Numeric did not work.

import ni; import NumPy.Numeric did work, but this leads to some unwieldy
constructs like:

x = NumPy.Numeric.array([5,6,4,3,3])

Also, with this approach, I couldn't figure out how to access the MLab.py
routines.

- Tom


_______________
MATRIX-SIG  - SIG on Matrix Math for Python

send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
_______________