Xgboost: Conda installer xgboost

Créé le 12 sept. 2016  ·  11Commentaires  ·  Source: dmlc/xgboost

Pour les bogues ou les problèmes d'installation, veuillez fournir les informations suivantes.
Plus vous fournirez d'informations, plus nous pourrons facilement vous proposer
aide et conseils.

Informations sur l'environnement

Système opérateur:
Mac OS X El Capitaine 10.11.6

Paquet utilisé (python/R/jvm/C++) :
Python

Version xgboost utilisée :
0.3.0

Si vous installez à partir de la source, veuillez fournir

  1. Le hachage de commit ( git rev-parse HEAD )
  2. Les journaux seront utiles (si les journaux sont volumineux, veuillez les télécharger en pièce jointe).

Si vous utilisez le package python, veuillez fournir

  1. La version et la distribution de Python
    2.7
  2. La commande pour installer xgboost si vous n'installez pas à partir de la source
    conda install -c akode xgboost=0.3

Étapes à reproduire

J'ai installé xgboost avec succès et il est affiché à la racine. Cependant, lorsque j'ai essayé d'importer xgboost, le paquet n'était pas là.

OSError : dlopen(//anaconda/lib/python2.7/site-packages/libxgboostwrapper.so, 6) : bibliothèque non chargée : @rpath/./libgomp.1.dylib
Référencé depuis : //anaconda/lib/python2.7/site-packages/libxgboostwrapper.so
Raison : image introuvable

Commentaire le plus utile

Pour installer le package Anaconda Distribution xgboost Python officiel, veuillez utiliser conda install py-xgboost (sur Windows, Linux ou macOS), pour le package R, c'est conda install r-xgboost .

Tous les 11 commentaires

@ghostintheshellarise la version xgboost=0.3 semble très obsolète. puisque vous avez conda , voulez-vous essayer pip install xgboost ?

Je suis cette instruction

  1. Terminal ouvert
  2. taper : git clone https://github.com/dmlc/xgboost.git
  3. type : cd xgboost; Fabriquer; emballage de CD ; python setup.py install --user

Mais cela ne fonctionne pas à la dernière commande
python setup.py install --user

et renvoie le message d'erreur suivant

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

Et j'ai essayé d'installer via l'instruction pip mais cela m'a donné le message que je suis déjà installé avec xgboost

Requirement already satisfied (use --upgrade to upgrade): xgboost in /anaconda/lib/python2.7/site-packages

Je ne suis pas formé à CS, donc tout me semble si énigmatique

Je rencontre le même problème :

Cannot find XGBoost Libarary in the candidate path, did you install compilers and run build.sh in root path?

Avez-vous trouvé une solution?

Merci beaucoup :)

@felipecruz91 avez-vous essayé avec pip install xgboost après avoir eu les compilateurs nécessaires (gcc 5 par exemple), au lieu d'utiliser conda install ?

@phunterlau Oui, j'ai essayé d'utiliser pip install xgboost mais j'obtiens l'erreur suivante :

No files/directories in C:\Users\....\AppData\Local\Temp\pip-build-9j_99ys4\xgboost\pip-egg-info (from PKG-INFO)

Oh, vous utilisez Windows, veuillez installer à partir de GitHub

@phunterlau J'ai essayé d'installer à partir de 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

Et j'obtiens l'erreur suivante :

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

Une idée?

Merci beaucoup :)

@ felipecruz91 veuillez suivre ces instructions d'IBM (comme mentionné également dans les instructions d'installation), étape par étape, strictement
https://www.ibm.com/developerworks/community/blogs/jfp/entry/Installing_XGBoost_For_Anaconda_on_Windows?lang=en

Pour installer le package Anaconda Distribution xgboost Python officiel, veuillez utiliser conda install py-xgboost (sur Windows, Linux ou macOS), pour le package R, c'est conda install r-xgboost .

@mingwandroid tu es un héros

@mingwandroid coup de poing

Cette page vous a été utile?
0 / 5 - 0 notes