xgboost icon indicating copy to clipboard operation
xgboost copied to clipboard

Win8+Py2.7: what is the missing part?

Open RamonYeung opened this issue 10 years ago • 3 comments

I install XGboost simple type 'pip install xgboost' at terminal.

When comes to Windows platform, I have done the following steps and failed.

  1. git clone recursively.
  2. add git submodule (BUT I don't think it helps anyway.)

when:

cd python-package && python setup.py install

returns:

Traceback (most recent call last):
  File "setup.py", line 19, in <module>
    LIB_PATH = libpath['find_lib_path']()
  File "xgboost/libpath.py", line 45, in find_lib_path
    'List of candidates:\n' + ('\n'.join(dll_path)))
__builtin__.XGBoostLibraryNotFound: Cannot find XGBoost Libarary in the candicate path, did you install compilers and run build.sh in root path?
List of candidates:
D:\Anaconda2\Lib\site-packages\xgboost\python-package\xgboost\libxgboost.dll
D:\Anaconda2\Lib\site-packages\xgboost\python-package\xgboost\../../lib/libxgboost.dll
D:\Anaconda2\Lib\site-packages\xgboost\python-package\xgboost\./lib/libxgboost.dll
D:\Anaconda2\Lib\site-packages\xgboost\python-package\xgboost\../../windows/x64/Release/libxgboost.dll
D:\Anaconda2\Lib\site-packages\xgboost\python-package\xgboost\./windows/x64/Release/libxgboost.dll

when:

cp make/mingw64.mk config.mk; mingw32-make -j4

returns:

bash: mingw32-make: command not found

Master tqchen plz help me out. Thx!!

RamonYeung avatar May 01 '16 12:05 RamonYeung

bash: mingw32-make: command not found

fixed.

Anybody will come to this trouble because of not having the right PATH global environment variable setting.

RamonYeung avatar May 01 '16 13:05 RamonYeung

When you successfully build all the files clone from the origin master by using

cp make/mingw64.mk config.mk; mingw32-make -j4

type next row in the terminal

cd python-package && python setup.py install

which should do the job and allow you to go XGBoost!

RamonYeung avatar May 02 '16 01:05 RamonYeung

how can you sove the problem(builtin.XGBoostLibraryNotFound: Cannot find XGBoost Libarary in the candicate path, did you install compilers and run build.sh in root path? List of candidates:)?many thx

jqjjcp avatar Jul 11 '16 12:07 jqjjcp