pip install xgboost
(base) PS C:\Windows\system32> pip install xgboost
Collecting xgboost
Downloading xgboost-1.6.2-py3-none-win_amd64.whl (125.4 MB)
|████████████████████████████████| 125.4 MB 174 kB/s
Requirement already satisfied: scipy in d:\anaconda3\lib\site-packages (from xgboost) (1.7.3)
Requirement already satisfied: numpy in d:\anaconda3\lib\site-packages (from xgboost) (1.21.5)
Installing collected packages: xgboost
Successfully installed xgboost-1.6.2
先管理员打开
再操作