-
XGBoostError: XGBoost Library (xgboost.dll) could not be loaded. 에러 해결법 & 윈도우 XGBoost 설치법data-science-summary/etc 2020. 9. 20. 17:54반응형
XGBoostError: XGBoost Library (xgboost.dll) could not be loaded. Likely causes: * OpenMP runtime is not installed (vcomp140.dll or libgomp-1.dll for Windows, libgomp.so for UNIX-like OSes) * You are running 32-bit Python on a 64-bit OS Error message(s): ['[WinError 127] 지정된 프로시저를 찾을 수 없습니다']
위 에러는 XGBoost 가 제대로 설치되지않아 발생하는 문제이다.
윈도우 XGBoost 설치법은 아래와 같다.
1. 아래 주소에서 xgboost 찾기를 통해 아래 파일을 다운받는다.
ex) python 버젼 3.7이면 cp37, 지금 PC가 64비트이면 amd64
www.lfd.uci.edu/~gohlke/pythonlibs/
2. 해당파일을 다운로드 받은곳으로 간뒤 아래 명령어를 통해 설치한다.
$ pip install xgboost-1.1.0-cp37-cp37m-win_amd64.whl
해결!
3. 가끔 jupyter notebook을 이용할때 설치후에도 아래 에러가 나면서 안되는 경우가 있는데 그럴떄에는 아래 명령어를 입력한뒤에 jupyter notebook을 껐다 키면 XGBoost 가 잘 작동된다.
# 에러 ImportError: cannot import name 'Int64Index' from 'xgboost.compat' ImportError: cannot import name 'os_fspath' from 'xgboost.compat'
명령어
pip install --upgrade xgboost
반응형'data-science-summary > etc' 카테고리의 다른 글
xgboost 설치 후 ImportError: cannot import name 'Int64Index, os_fspath ' from 'xgboost.compat' 에러 해결법 (0) 2020.09.20 window 에서 xgboost 설치하는 법 in python (0) 2020.09.20 jupyter notebook markdown 에서 이미지 세로로 붙이는법 - 간단해결법 (0) 2020.09.19 .ipynb_checkpoints 파일을 git 에 반영하지않는법 (0) 2020.09.14 jupyter notebook 에서 이미지 입력하는법 (0) 2020.09.14