1.1. Installation

1.1.1. Requirements

saga-python has the following requirements:

  • Python 2.5 or newer

1.1.2. Installation via PyPi

saga-python is available for download via PyPI and may be installed using easy_install or pip (preferred). Both automatically download and install all dependencies required by saga-python if they can’t be found on your system:

pip install saga-python

or with easy_install:

easy_install saga-python

1.1.3. Using Virtualenv

If you don’t want to (or can’t) install SAGA Python into your system’s Python environment, there’s a simple (and often preferred) way to create an alternative Python environment (e.g., in your home directory):

virtualenv --no-site-package $HOME/sagaenv/
. $HOME/sagaenv/bin/activate
pip install saga-python

What if my system Doesn’t come With virtualenv, pip or easy_install?

There’s a simple workaround for that using the ‘instant’ version of virtualenv. It also installs easy_install and pip:

wget https://raw.githubusercontent.com/pypa/virtualenv/1.9.1/virtualenv.py
python virtualenv.py $HOME/sagaenv/ --no-site-packages
. $HOME/sagaenv/bin/activate
pip install saga-python

1.1.4. Installing the Latest Development Version

Warning

Please keep in mind that the latest development version of SAGA Python can be highly unstable or even completely broken. It’s not recommended to use it in a production environment.

You can install the latest development version of SAGA Python directly from our Git repository using pip:

pip install -e git://github.com/saga-project/saga-python.git@devel#egg=saga-python