PDA

View Full Version : newbie wants to get help in runnin python



Daniel_wang
October 4th, 2008, 04:50 PM
I get a source pakage about python code,

but I try to run it using the command

python python.py

it always prompt me that some module is not find like this


my-desktop:~/BPDistr/BayesPrune$ python PruneGUI.py
Traceback (most recent call last):
File "PruneGUI.py", line 11, in <module>
import numpy
ImportError: No module named numpy

Daniel_wang
October 4th, 2008, 04:51 PM
is it any problme with the pythonpath?

CptPicard
October 4th, 2008, 04:56 PM
Well, do you have numpy installed?

gomputor
October 4th, 2008, 04:57 PM
You have to install the numpy library for Python.
Open a terminal and:

sudo apt-get install python-numpy