Installation#
Requirements#
SMAC is written in python3 and therefore requires an environment with python>=3.8. Furthermore, the Random Forest used in SMAC requires SWIG as a build dependency.
Info
SMAC is tested on Linux and Mac machines with python >=3.8.
SetUp#
We recommend using Anaconda to create and activate an environment:
Now install swig either on the system level e.g. using the following command for Linux:
Or install swig inside of an already created conda environment using:
Install SMAC#
You can install SMAC either using PyPI or Conda-forge.
PYPI#
To install SMAC with PyPI call:
Or alternatively, clone the environment from GitHub directly:
Conda-forge#
Installing SMAC from the conda-forge
channel can be achieved by adding conda-forge
to your channels with:
You must have conda >= 4.9
installed. To update conda or check your current conda version, please follow the instructions from the official anaconda documentation. Once the conda-forge
channel has been enabled, SMAC can be installed with:
Read SMAC feedstock for more details.
Windows (native or via WSL, experimental)#
SMAC can be installed under Windows in a WSL (Windows Subsystem for Linux). You can find an instruction on how to do this here: Experimental. However, this is experimental and might not work in each case. If you would like to suggest any changes, please let us know.