pyregion is registered in pypi, thus you can install it by
pip install pyregion
This will also install pyparsing if not installed.
The source file can be downloaded directly from the following page.
To install with necessary dependency (pyparsing, see below), you may do
in Python 2
pip install "pyparsing<2" pip install pyregion
in Python 3
pip install "pyparsing>=2" pip install pyregion
The development version of pyregion can be found on the github page.
To fetch the source code by cloning my git repository for any recent bug fix.
git clone git://github.com/astropy/pyregion.git cd pyregion python setup.py install
For any bug reporting or any suggestion, please use the github issue tracker.
Being based on pyparsing module, pyparsing need to be installed to use pyregion. Optionally, you also requires pywcs module installed for coordinate conversion. Displaying regions is supported for matplotlib. Some example uses wcsaxes.
By default, pyregion build a filtering module, which requires a C compiler. If you don’t want, edit “setup.py”
WITH_FILTER = False