The preparation for this recipe consists of installing a specific version of scikit-learn, installing xgboost, and installing scikit-optimize in pip. The command for this is as follows:
pip install scikit-learn==0.20.3 xgboost scikit-optimize pandas