更新 xgboost 安裝
brew install gcc@9 libomp
pip install xgboost --user
更新 xgboost 安裝:
- 下載 xgboost.dll : http://ssl.picnet.com.au/xgboost/20180217/x64/xgboost.dll
- 下載 https://github.com/dmlc/xgboost/archive/master.zip
- 解壓 master.zip后, 進入目錄 python-package/xgboost, 將xgboost.dll 復制到此處。
然后安裝cd python-package; python setup.py install
參考: http://www.picnet.com.au/blogs/guido/post/2016/09/22/xgboost-windows-x64-binaries-for-download/
-
下載安裝 git-windows 和 mingw32-make, g++(64位)
https://github.com/git-for-windows/git/releases/download/v2.7.3.windows.1/Git-2.7.3-64-bit.exe
http://mirrors.aliyun.com/CRAN/bin/windows/Rtools/Rtools33.exe
注意 windows 10 64位系統,用tdm-gcc編譯后,出現動態鏈接庫錯誤。 最新的mingw可以解決,下載見這里x86_64-5.3.0-release-win32-seh-rt_v4-rev0.7z -
打開git bash, 輸入下面命令
git clone --recursive https://github.com/dmlc/xgboost
cd xgboost
git submodule init
git submodule update
alias make='mingw32-make'
cp make/mingw64.mk config.mk; make -j4
cd python-package/
python setup.py install
參考: