Thursday, July 16, 2009

Python in Mac

After got a macbook pro a week ago, I start to installing modules  needed by python. I need it for computing physic problem related to  comet orbital, gravity, vector, etc, so what I need is Scipy, Numpy, Matplotlib and VPython (vor visualization).

Everything is fine, I was able to typing command below in IDLE's python shell without any error

>>import visual

>>import numpy

>>import scipy

>>import matplotlib

The problem arise when I need output in graphical with PNG format, it need pylab which is part of matplotlib module--but need explicit declaration.

when I type

>>import pylab

and, crash

duh Gusti, ...

Powered by Qumana