exoplanet requires Python 3.8 and later.

Using pip#

The recommended method of installing exoplanet is with pip:

python -m pip install -U "exoplanet[pymc]"

If you want to install some recommended extras (pymc-ext and celerite2), you can use the following, or just follow the instructions on the relevant documentation pages:

python -m pip install -U "exoplanet[extras]"

Both of these installation methods will install the required dependencies:

Compatibility with PyMC3#

Although now updated to work with PyMC version 5, exoplanet is still backwards compatible with PyMC3. To install the PyMC3 compatible version of exoplanet, use the following command:

python -m pip install -U "exoplanet[pymc3]"

or first install PyMC3 (however you want) and then exoplanet without any extras:

python -m pip install -U exoplanet

Using conda#

exoplanet can also be installed using conda from conda-forge:

conda install -c conda-forge exoplanet

From Source#

The source code for exoplanet can be downloaded and installed from GitHub by running

git clone
cd exoplanet
python -m pip install -e .


To run the unit tests, install the development dependencies using pip:

python -m pip install -e ".[test]"

and then execute:

python -m pytest -v tests

All of the tests should (of course) pass. If any of the tests don’t pass and if you can’t sort out why, open an issue on GitHub.