Installation

Basic installation

The package can be installed via conda. To do so, type the following commands in a terminal or shell:

$ conda config --add channels conda-forge

$ conda install -c opensourceeconomics estimagic

The first line adds conda-forge to your conda channels. This is necessary for conda to find all dependencies of estimagic. The second line installs estimagic and its mandatory dependencies.

Installing optional dependencies

Only scipy is a mandatory dependency of estimagic. Other algorithms become available if you install more packages. We make this optional because most of the time you will use at least one additional package, but only very rarely will you need all of them.

For an overview of all optimizers and the packages you need to install to enable them see Supported Algorithms.

To enable all algorithms at once, do the following:

pip install Py-BOBYQA

pip install DFO-LS

conda install petsc4py (Not available on Windows)