[Numpy-discussion] linux cluster installation

Christian K ckkart at hoc.net
Thu May 3 19:38:22 EDT 2007


John Washakie wrote:
> From: "John Washakie" <washakie at gmail.com>
> To: numpy-discussion at lists.sourceforge.net
> Date: Tue, 1 May 2007 17:38:52 +0200
> Subject: linux cluster installation
> What is the best way to install numpy and ultimately scipy on a
> cluster of linux machines so that you just install it once? I imagine
> you have to be root to do the installation for everyone, but what if
> you just want to install it to your home directory?
> 
> I have done:
> [wash at wyo ~]$ setup.py install prefix=~
> 
> ...
> 
> [wash at wyo ~]$ python
> Python 2.4.3 (#1, Jun 13 2006, 16:41:18)
> [GCC 4.0.2 20051125 (Red Hat 4.0.2-8)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> from numpy import *
> Traceback (most recent call last):
>  File "<stdin>", line 1, in ?
> ImportError: No module named numpy

You need to set PYTHONPATH to point at your site-packages dir. So in your case
it should be something like:

~/lib/python2.X/site-packages

Christian




More information about the NumPy-Discussion mailing list