Install#
EvalML is available for Python 3.7, 3.8, and 3.9. It can be installed from pypi, conda-forge, or from source.
To install EvalML with all dependencies, run the following command:
$ pip install evalml
$ conda install -c conda-forge evalml
EvalML with core dependencies only#
EvalML includes several optional dependencies. The xgboost
and catboost
packages support pipelines built around those modeling libraries. The plotly
and ipywidgets
packages support plotting functionality in automl searches. These dependencies are recommended, and are included with EvalML by default but are not required in order to install and use EvalML.
EvalML’s core dependencies are listed in core-requirements.txt
in the source code, and optional requirements are isted in requirements.txt
.
To install EvalML with only the core-required dependencies with pypi, first download the EvalML source from pypi to access the requirements files before running the following command. For conda-forge, just run the following command:
$ pip install evalml --no-dependencies
$ pip install -r core-requirements.txt
$ conda install -c conda-forge evalml-core
Add-ons#
EvalML allows users to install add-ons individually or all at once:
Update Checker: Receive automatic notifications of new EvalML releases
Time Series: Use EvalML with Facebook’s Prophet library for time series support.
$ pip install evalml[complete]
$ pip install evalml[prophet]
$ pip install evalml[update_checker]
$ conda install -c conda-forge alteryx-open-src-update-checker
Time Series support with Facebook’s Prophet#
To support the Prophet
time series estimator, be sure to install it as an extra requirement. Please note that this may take a few minutes.
Prophet is currently only supported via pip installation in EvalML for Mac with CmdStan as a backend.
pip install evalml[prophet]
Another option for installing Prophet with CmdStan as a backend is to use make installdeps-prophet
.
Note: In order to do this, you must have the EvalML repo cloned and you must be in the top level folder <your_directory>/evalml/
to execute this command.
This command will do the following:
Pip install
cmdstanpy==0.9.68
Execute the
install_cmdstan.py
script found within yoursite-packages/cmdstanpy
which buildscmdstan
in yoursite-packages
.Install
Prophet==1.0.1
with theCMDSTAN
andSTAN_BACKEND
environment variables set.
If the site-packages
path is incorrect or you’d like to specify a different one, just run make installdeps-prophet SITE_PACKAGES_DIR="<path_to_your_site_packages>"
.
If you’d like to have more fine-tuned control over the installation steps for Prophet, such as specifying the backend, follow these steps:
$ pip install prophet==1.0.1
$ pip install cmdstanpy==0.9.68
$ python <path_to_installed_cmdstanpy>/install_cmdstan.py --dir <path_to_build_cmdstan> -v <version_to_use>
$ CMDSTAN=<path_to_build_cmdstan>/cmdstan-<version_to_use> STAN_BACKEND=CMDSTANPY pip install prophet==1.0.1
Windows Additional Requirements & Troubleshooting#
If you are using pip
to install EvalML on Windows, it is recommended you first install the following packages using conda:
numba
(needed forshap
and prediction explanations). Install withconda install -c conda-forge numba
graphviz
if you’re using EvalML’s plotting utilities. Install withconda install -c conda-forge python-graphviz
The XGBoost library may not be pip-installable in some Windows environments. If you are encountering installation issues, please try installing XGBoost from Github before installing EvalML or install evalml with conda.