The installation instructions are in Section 2.1 of the Genair manual. Unfortunately, Genair can be quite tempermental to get working on different machines. So, expect to have to do some trouble shooting.
In some cases, the instructions in Section 2.1.1 for the Python distribution should be replaced by the ones below.
With some of the new machines, you'll need the Conda matplotlib package to use genair. You may be able to install this using
>> conda install matplotlib
but sometimes this doesn't work. One work-around is to reinstall Anaconda as described below.
Install Anaconda: Download the Python 2.7 version from https://www.continuum.io/downloads and follow the installation instructions. Note: In some cases, the installer doesn't seem to download correctly, and the built-in integrity tests may fail. If this happens, simply try re-downloading and installing - this seems to work. Make sure that PATH and PYTHONPATH point to the new installation of Anaconda, and that they are in both your .bashrc and .cshrc (if applicable)
Setup genair: Follow the genair conda environment setup as described in the manual, but with some changes (described below). An older version of ipython (3.1.0) is required for genair, which also requires an older version of path.py (7.7.1).
Create conda environment:
>> conda create -n genair python=2.7 pip
>> bash
>> source activate genair (alternatively, use >> conda activate genair)
>> conda install ipython=3.1.0
>> pip install -I path.py==7.7.1
>> conda install numpy scipy
>> conda install pillow==1.7.1
>> conda install pyopengl
(or "pip install pyopengl" if conda install doesn't work)
>> pip install pyglet (alternatively, use >> conda install -c conda-forge pyglet)
>> conda install matplotlib
When installing some of the above packages, some people found they would segfault during installation. If they do, try repeating the "conda install " a few times - this seemed to work. Note that newer versions of pillow (previously pil) and pyglet no longer support certain plotting functions in Genair. However, these can be modified in the source code without difficulty.