title: Calling PARI/GP from Python
body: <p>I would like to call <a href="http://pari.math.u-bordeaux.fr/dochtml/gpman.html" rel="nofollow">PARI/GP</a> from Python only to calculate the function <code>nextprime(n)</code> for different <code>n</code>s that I define. Unfortunately I can't get <a href="http://code.google.com/p/pari-python/" rel="nofollow">pari-python</a> to install so I thought I would just call it using a command line via <code>os.system</code> in Python.  I can't see in the man page how to do get PARI/GP to run in non-interactive mode, however.  Is there a way to achieve this?</p>