Para errores o problemas de instalación, proporcione la siguiente información.
Cuanta más información proporcione, más fácilmente podremos ofrecerle
ayuda y consejo.
Sistema operativo:
Mac OS X El Capitán 10.11.6
Paquete utilizado (python/R/jvm/C++):
Pitón
xgboost
versión utilizada:
0.3.0
Si instala desde la fuente, proporcione
git rev-parse HEAD
)Si está utilizando el paquete python, proporcione
xgboost
si no está instalando desde la fuenteInstalé correctamente xgboost y se muestra en la raíz. Sin embargo, cuando traté de importar xgboost, dijo que el paquete no está allí.
OSError: dlopen(//anaconda/lib/python2.7/site-packages/libxgboostwrapper.so, 6): Biblioteca no cargada: @rpath/./libgomp.1.dylib
Referenciado desde: //anaconda/lib/python2.7/site-packages/libxgboostwrapper.so
Razón: imagen no encontrada
@ghostintheshellarise la versión xgboost=0.3
parece muy desactualizada. ya que tienes conda
, ¿quieres probar pip install xgboost
?
yo siguiendo esta instruccion
Pero no funciona en el último comando.
python setup.py instalar --usuario
y devolver el siguiente mensaje de error
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
Y traté de instalar a través de instrucciones pip pero me dio el mensaje de que ya estoy instalado con xgboost
Requirement already satisfied (use --upgrade to upgrade): xgboost in /anaconda/lib/python2.7/site-packages
No estoy entrenado en CS, así que todo me parece tan críptico.
Estoy experimentando el mismo problema:
Cannot find XGBoost Libarary in the candidate path, did you install compilers and run build.sh in root path?
¿Encontraste alguna solución?
Muchas gracias :)
@felipecruz91 , ¿ha probado con pip install xgboost
después de tener los compiladores necesarios (gcc 5, por ejemplo), en lugar de usar conda
install?
@phunterlau Sí, intenté usar pip install xgboost
pero aparece el siguiente error:
No files/directories in C:\Users\....\AppData\Local\Temp\pip-build-9j_99ys4\xgboost\pip-egg-info (from PKG-INFO)
Oh, usa Windows, instálelo desde GitHub
@phunterlau intenté instalar desde 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
Y me sale el siguiente error:
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
¿Alguna idea?
Muchas gracias :)
@felipecruz91 siga estas instrucciones de IBM (como se menciona también en las instrucciones de instalación), paso a paso, estrictamente
https://www.ibm.com/developerworks/community/blogs/jfp/entry/Installing_XGBoost_For_Anaconda_on_Windows?lang=en
Para instalar el paquete oficial de Python Anaconda Distribution
xgboost, use conda install py-xgboost
(en Windows, Linux o macOS), para el paquete R, es conda install r-xgboost
.
@mingwandroid eres un héroe
@mingwandroid golpe arriba
Comentario más útil
Para instalar el paquete oficial de Python
Anaconda Distribution
xgboost, useconda install py-xgboost
(en Windows, Linux o macOS), para el paquete R, esconda install r-xgboost
.