Online tutorials are many, complex and not necessarily successful, resulting in a lot of confusion and time costs, often need to spend a morning or an afternoon to configure the environment, after several attempts, the following methods of pro-test effective:
- Download Anaconda Platform https://www.anaconda.com/download/
- Download the compiled DLL http://www.picnet.com.au/blogs/guido/2016/09/22/xgboost-windows-x64-binaries-for-download/
- Download git, clone source git clone https://github.com/dmlc/xgboost.git xgboost_install_dir
- Copy the DLL files in 2 to the corresponding directory xgboost_install_dir\python-package\xgboost\
- Copy all the files in the Python-package into the same folder as the Python program, such as D:\Users\bklv\AppData\Local\Continuum\anaconda3
- Open cmd, switch to directory CD D:\Users\bklv\AppData\Local\Continuum\anaconda3, perform setup setup, Python setup.py install
Install Xgboost (Windows) in Python