Para bugs ou problemas de instalação, forneça as seguintes informações.
Quanto mais informações você fornecer, mais facilmente poderemos oferecer
ajuda e conselho.
Sistema operacional:
Mac OS X El Captain 10.11.6
Pacote usado (python/R/jvm/C++):
Pitão
xgboost
versão usada:
0.3.0
Se estiver instalando a partir da fonte, forneça
git rev-parse HEAD
)Se você estiver usando o pacote python, forneça
xgboost
se você não estiver instalando da fonteEu instalei com sucesso o xgboost e ele é mostrado na raiz. No entanto, quando tentei importar o xgboost, ele disse que o pacote não está lá.
OSError: dlopen(//anaconda/lib/python2.7/site-packages/libxgboostwrapper.so, 6): Biblioteca não carregada: @rpath/./libgomp.1.dylib
Referenciado de: //anaconda/lib/python2.7/site-packages/libxgboostwrapper.so
Razão: imagem não encontrada
@ghostintheshellarise a versão xgboost=0.3
parece muito desatualizada. já que você tem conda
, você quer tentar pip install xgboost
?
estou seguindo esta instrução
Mas não funciona no último comando
python setup.py install --user
e retornar a seguinte mensagem de erro
Traceback (most recent call last):
File "setup.py", line 19, in <module>
LIB_PATH = libpath['find_lib_path']()
File "xgboost/libpath.py", line 47, in find_lib_path
'List of candidates:\n' + ('\n'.join(dll_path)))
__builtin__.XGBoostLibraryNotFound: Cannot find XGBoost Libarary in the candidate path, did you install compilers and run build.sh in root path?
List of candidates:
/Users/SimonTse/xgboost/python-package/xgboost/libxgboost.so
/Users/SimonTse/xgboost/python-package/xgboost/../../lib/libxgboost.so
/Users/SimonTse/xgboost/python-package/xgboost/./lib/libxgboost.so
//anaconda/xgboost/libxgboost.so
E eu tentei instalar via instrução pip, mas me deu a mensagem de que já estou instalado com o xgboost
Requirement already satisfied (use --upgrade to upgrade): xgboost in /anaconda/lib/python2.7/site-packages
Eu não sou treinado em CS, então tudo parece tão enigmático para mim
Eu estou experimentando o mesmo problema:
Cannot find XGBoost Libarary in the candidate path, did you install compilers and run build.sh in root path?
Você achou alguma solução?
Muito obrigado :)
@felipecruz91 você tentou com pip install xgboost
depois de ter compiladores necessários (gcc 5 por exemplo), em vez de usar conda
install?
@hunterlau Sim, tentei usar pip install xgboost
mas recebo o seguinte erro:
No files/directories in C:\Users\....\AppData\Local\Temp\pip-build-9j_99ys4\xgboost\pip-egg-info (from PKG-INFO)
Ah, você usa o Windows, instale do GitHub
@hunterlau Eu tentei instalar do Github:
git clone --recursive https://github.com/dmlc/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
E recebo o seguinte erro:
Traceback (most recent call last):
File "setup.py", line 19, in <module>
LIB_PATH = libpath['find_lib_path']()
File "xgboost/libpath.py", line 46, in find_lib_path
'List of candidates:\n' + ('\n'.join(dll_path)))
XGBoostLibraryNotFound: Cannot find XGBoost Library in the candidate path, did you install compilers and run build.sh in root path?
List of candidates:
C:\Users\felipe.cruz\Source\Repos\xgboost2\xgboost\python-package\xgboost\libxgboost.dll
C:\Users\felipe.cruz\Source\Repos\xgboost2\xgboost\python-package\xgboost\../../lib/libxgboost.dll
C:\Users\felipe.cruz\Source\Repos\xgboost2\xgboost\python-package\xgboost\./lib/libxgboost.dll
C:\Users\felipe.cruz\AppData\Local\Continuum\Miniconda3\xgboost\libxgboost.dll
C:\Users\felipe.cruz\Source\Repos\xgboost2\xgboost\python-package\xgboost\../../windows/x64/Release/libxgboost.dll
C:\Users\felipe.cruz\Source\Repos\xgboost2\xgboost\python-package\xgboost\./windows/x64/Release/libxgboost.dll
Qualquer ideia?
Muito obrigado :)
@felipecruz91 siga esta instrução da IBM (conforme mencionado na instrução de instalação também), passo a passo, estritamente
https://www.ibm.com/developerworks/community/blogs/jfp/entry/Installing_XGBoost_For_Anaconda_on_Windows?lang=en
Para instalar o pacote oficial Anaconda Distribution
xgboost Python, use conda install py-xgboost
(no Windows, Linux ou macOS), para o pacote R, é conda install r-xgboost
.
@mingwandroid você é um herói
@mingwandroid pulsar para cima
Comentários muito úteis
Para instalar o pacote oficial
Anaconda Distribution
xgboost Python, useconda install py-xgboost
(no Windows, Linux ou macOS), para o pacote R, éconda install r-xgboost
.