Version 36 (modified by flip, 8 years ago) (diff)



PyGAMMA is a Python-wrapped version of GAMMA. It combines the power of the GAMMA library with the convenience of working in the Python programming language. Python is open source, object-oriented, and considerably easier to write than C++.

PyGAMMA works with Python 2.5 - 2.7 (but not the 3.x series).

The PyGAMMA wrapper was created using SWIG. Most, but not all of GAMMA is available to Python through PyGAMMA.

We have are some tips on exploring and using PyGAMMA.

The performance of PyGAMMA for compute-intense calculations is very comparable to that of GAMMA.

Downloading PyGAMMA

You can download the latest version of PyGAMMA which includes a Python installer.

Installing PyGAMMA

PyGAMMA uses the standard Python installer It attempts to use prebuilt PyGAMMA binaries for your platform. If it can't find appropriate binaries, it will tell you that and direct you to the instructions for building a custom PyGAMMA.


If you've installed Python applications before, this might seem familiar. At the command line, in gamma/pygamma directory, execute this command under Windows --

python install

And this command on other platforms --

sudo python install

If says that it doesn't have binaries for your platform, you'll need to follow the instructions for building a custom PyGAMMA. If you find yourself in this situation, the pygamma directory from which you just ran is useless, I'm afraid, so you'd best delete it to avoid confusion.