I'm having a problem for python to find the installed libraries when I run it in a computer cluster.
When I try, e.g., to load numpy in the script:
#file: /home/foo/test.py
import numpy
print numpy.__version__
on the server, I get this:
foo@abax:~$ python test.py
1.4.1
but when I try to run the same in a node with remote shell, I get an error:
foo@abax:~$ rsh -l foo ab01 "python test.py"
Traceback (most recent call last):
File "test.py", line 2, in <module>
import numpy
ImportError: No module named numpy
is there a way to tell python to load the files that are installed in the the central node of the cluster?