Directly use pip install xgboost to install, even if the source is added, the installation will fail. Of course, programmers are like apes, jumping up and down, how can you feel at ease if the problem is not solved.
Solution: Use the method of downloading xgboost, and then install it manually
But the premise is to download the correct version of xgboost
View matching versions:
pip debug --verbose
result
Conclusion: That is to say, these are the versions that can match
Click to visit the xgboost official website
to find the corresponding version, download it, then enter the directory where the whl file is located, enter cmd in the folder input field to enter the cmd installation in the current path
# 填入你下载的whl文件
pip insatll xgboost-1.5.1-cp37-cp37m-win32.whl
Successful installation! ! !