0x00 Overview
In the absence of XGBoost installation, import xgboot to be wrong, as follows:
# ModuleNotFoundError: No module named ‘xgboost’
0x01 install xgboost
Prerequisites:
windows environment, Anaconda (herein refers Anaconda3) has been installed, and the corresponding numpy installed sicpy
Here's the easiest way to install:
Open Anaconda Prompt
enter the command:
# pip install xgboost -i https://pypi.tuna.tsinghua.edu.cn/simple
"-I https://pypi.tuna.tsinghua.edu.cn/simple" It's Tsinghua mirror package downloaded from here faster; otherwise, the default image abroad, slow downloads, installation might fail.
Results are as follows:
Whether it is here or python or jupyter system can be used xgboost package.