Python 2.7 and 3.4+ are supported.
pyregion has the following required dependencies:
- Astropy version 1.0 or later (which requires Numpy)
pyregion has the following optional dependencies for plotting:
To work with the development version, you’ll need Cython and a C compiler, because the code to generate masks from regions is written in Cython.
Installing the latest stable version is possible either using pip or conda.
pip install --no-deps pyregion
--no-deps flag is optional, but highly recommended if you already
have Numpy installed, since otherwise pip will sometimes try to “help” you
by upgrading your Numpy installation, which may not always be desired.
conda install -c astropy pyregion
To check if your install is OK, run the tests:
python -c 'import pyregion; pyregion.test()'