使用了各種方法,也沒安裝成功,每次import xgboost都會報錯。
未成功方法:
1. anaconda show -t conda xgboost #選擇一個win64的進行安裝
2. git clone https://github.com/dmlc/xgboost.git
下載最新版的dll文件,存入xgboost目錄http://www.picnet.com.au/blogs/guido/2016/09/22/xgboost-windows-x64-binaries-for-download/
cd目錄,python setup.py install
(很麻煩)
成功又簡單的方法:(記得改成國內鏡像,幾秒鐘搞定。默認的外國鏡像二十分鐘……)
pip install xgboost -i https://pypi.tuna.tsinghua.edu.cn/simple
lz遇到了如下問題,conda upgrade tensorflow就好了。