Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: newbie question: ImportError: No module named Numeric

Thread Tools

Re: newbie question: ImportError: No module named Numeric

Harry George
Posts: n/a
rmachne <(E-Mail Removed)> writes:

> Hi there,
> Sorry, if there is a newbie list or this question is answered in tutorials
> - I tried but without succes - here is my question:
> Using linux,
> I need the 'Numerical Python' package, and I installed it on my local
> computer (not with the other packages in /usr/local/...) using
> ~/programs/Numeric-23.0>python install --home=/scratch/raim
> but now the Numeric package / module can't be found:
> ~/programs/Numeric-23.0/Test> python
> Traceback (most recent call last):
> File "", line 2, in ?
> import Numeric
> ImportError: No module named Numeric
> Exit 1
> I couldn't find out which path variable to change or add. Can anyone
> help?
> ( works fine when called from within the lib folder with
> best
> rainer

You can set an env variable:
export PYTHONPATH=/scratch/raim
(or whatever your shell syntax is)

This adds the path to your normal defaults.

You can also do this 'export' in a shell script which runs the
application. This is useful if you have several variants of a given
module, and want to use one or the other in a specific case.

-- Removed)
6-6M31 Knowledge Management
Phone: (425) 294-8757
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
int to numeric numeric(18,2) ? jobs ASP .Net 2 07-22-2007 12:32 AM
Arithmetic overflow error converting numeric to data type numeric. darrel ASP .Net 4 07-19-2007 09:57 PM
check if string contains numeric, and check string length of numeric value C++ 5 06-30-2005 01:08 PM
Using JYTHON inside ANT : access os module -> "ImportError: no module named javaos" eric_bellard Python 1 10-07-2004 05:41 AM
Re: newbie question: ImportError: No module named Numeric Mikael Olofsson Python 0 07-16-2003 06:46 AM