(1)手动指定国内镜像
pip install xgboost -i https://pypi.tuna.tsinghua.edu.cn/simple/
pip install xgboost -i https://pypi.doubanio.com/simple/
(2)将时间设置得更长一点
pip --default-timeout=100 install xgboost
(1)手动指定国内镜像
pip install xgboost -i https://pypi.tuna.tsinghua.edu.cn/simple/
pip install xgboost -i https://pypi.doubanio.com/simple/
(2)将时间设置得更长一点
pip --default-timeout=100 install xgboost