Bei Fehlern oder Installationsproblemen geben Sie bitte die folgenden Informationen an.
Je mehr Informationen Sie uns zur Verfügung stellen, desto einfacher können wir anbieten
Hilfe und Rat.
Betriebssystem:
Mac OS X El Kapitän 10.11.6
Verwendetes Paket (python/R/jvm/C++):
Python
Verwendete xgboost
-Version:
0.3.0
Wenn Sie von der Quelle installieren, geben Sie bitte Folgendes an
git rev-parse HEAD
)Wenn Sie das Python-Paket verwenden, geben Sie es bitte an
xgboost
, wenn Sie nicht von der Quelle installierenIch habe xgboost erfolgreich installiert und es wird im Stammverzeichnis angezeigt. Als ich jedoch versuchte, xgboost zu importieren, hieß es, das Paket sei nicht vorhanden.
OSError: dlopen(//anaconda/lib/python2.7/site-packages/libxgboostwrapper.so, 6): Bibliothek nicht geladen: @rpath/./libgomp.1.dylib
Referenziert von: //anaconda/lib/python2.7/site-packages/libxgboostwrapper.so
Grund: Bild nicht gefunden
@ghostinthehellarise die Version xgboost=0.3
scheint sehr veraltet zu sein. Da Sie conda
haben, möchten Sie pip install xgboost
ausprobieren?
Ich befolge diese Anweisung
Aber es funktioniert nicht beim letzten Befehl
python setup.py install --user
und folgende Fehlermeldung zurückgeben
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
Und ich habe versucht, per Pip-Anweisung zu installieren, aber es gab mir die Meldung, dass ich bereits mit xgboost installiert bin
Requirement already satisfied (use --upgrade to upgrade): xgboost in /anaconda/lib/python2.7/site-packages
Ich bin kein Informatiker, also sieht alles so kryptisch für mich aus
Ich habe das gleiche Problem:
Cannot find XGBoost Libarary in the candidate path, did you install compilers and run build.sh in root path?
Hast du eine Lösung gefunden?
Danke sehr :)
@felipecruz91 haben Sie es mit pip install xgboost
versucht, nachdem Sie die erforderlichen Compiler (z. B. gcc 5) installiert haben, anstatt conda
zu installieren?
@phunterlau Ja, ich habe versucht, pip install xgboost
zu verwenden, aber ich erhalte die folgende Fehlermeldung:
No files/directories in C:\Users\....\AppData\Local\Temp\pip-build-9j_99ys4\xgboost\pip-egg-info (from PKG-INFO)
Oh, Sie verwenden Windows, bitte installieren Sie es von GitHub
@phunterlau Ich habe versucht, von Github zu installieren:
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
Und ich bekomme folgenden Fehler:
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
Irgendeine Idee?
Danke sehr :)
@felipecruz91 Bitte folgen Sie dieser Anleitung von IBM (wie auch in der Installationsanleitung erwähnt) Schritt für Schritt strikt
https://www.ibm.com/developerworks/community/blogs/jfp/entry/Installing_XGBoost_For_Anaconda_on_Windows?lang=en
Um das offizielle Anaconda Distribution
xgboost Python-Paket zu installieren, verwenden Sie bitte conda install py-xgboost
(unter Windows, Linux oder macOS), für das R-Paket ist es conda install r-xgboost
.
@mingwandroid du bist ein Held
@mingwandroid Daumen hoch
Hilfreichster Kommentar
Um das offizielle
Anaconda Distribution
xgboost Python-Paket zu installieren, verwenden Sie bitteconda install py-xgboost
(unter Windows, Linux oder macOS), für das R-Paket ist esconda install r-xgboost
.