windows下安裝xgboost教程

2021-08-19 02:53:43 字數 1488 閱讀 3164

問題:直接用pip install xgboost時,存在下圖的問題,

解決方案:

1.安裝mingw-w64

(安裝時,architecture選擇x86_64,其他不變)

(安裝後,配置環境變數:在path中新增h:\adasoftware\mingw64\mingw64\bin)

(然後,在mingw64目錄下找到mingw32-make.exe 並將其更名為make.exe【不然後面使用make -j4時會出現:

make:command not find

】,這是為了方便後面使用make -j4

)(最後,在cmd下輸入make會返回「make: *** no targets specified and no makefile found. stop.」)

4.新增anaconda的3個環境變數(在path中新增:h:\adasoftware\anacon\library\bin,h:\adasoftware\anacon\scripts,h:\adasoftware\anacon)(這裡anaconda的路徑其實就是python的路徑)

3.安裝pip

4.安裝numpy和scipy

5.安裝xgboost

mac上安裝homebrew和xgboost

bin bash c curl fssl 發現一直連線不上github.為了避免大家也跳坑浪費時間,我貼出乙個解決方案 bin zsh c curl fssl 輕輕鬆鬆就可以安裝成功,回車之後它會讓你選擇乙個映象,有中科,清華等等,隨意選乙個就可以.途中遇到password,你就輸入密碼即可.直到a...

windows下安裝php memcache擴充套件

解壓下的檔案,解壓後有以下檔案 接著以管理員身份開啟cmd,進入剛才解壓的目錄,安裝memcache memcached.exe d install 接著啟動memcache服務 memcached.exe d start 這樣memcache服務就安裝好了。接著往xampp中加入 phpmemca...

Windows下安裝TensorFlow快速教程

參考 0 有支援cuda計算能力3.0或更高版本的nvidiagpu卡。3 cuda8.0相關的nvidia驅動。具備了上述安裝條件 cpu或gpu 之後,tensorflow可以通過兩種方式進行安裝。一是 native pip,二是anaconda。推薦前者,比較簡單。一 使用 native pi...