Не могу установить xgboost в Linux Mint - PullRequest
0 голосов
/ 21 марта 2020

Я пытаюсь установить xgboost в Linux Mint с python 3.6.9. Я перепробовал много вариантов, но все равно он не будет установлен. Я новичок в этом и мог бы использовать некоторую помощь. Пожалуйста, запишите на английском языке sh. Я еще не настолько разбираюсь в технологиях. Это код, который я получаю при запуске pip3 install xgboost:

jbustost@jbustost-VGN-NS315TH:~$ pip3 install xgboost
Defaulting to user installation because normal site-packages is not writeable
Collecting xgboost
  Using cached xgboost-1.0.2.tar.gz (821 kB)
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-sqv2z78a/xgboost/setup.py'"'"'; __file__='"'"'/tmp/pip-install-sqv2z78a/xgboost/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-sqv2z78a/xgboost/pip-egg-info
         cwd: /tmp/pip-install-sqv2z78a/xgboost/
    Complete output (27 lines):
    + pwd
    + oldpath=/tmp/pip-install-sqv2z78a/xgboost
    + cd ./xgboost/
    + mkdir -p build
    + cd build
    + cmake ..
    ./xgboost/build-python.sh: 21: ./xgboost/build-python.sh: cmake: not found
    + echo -----------------------------
    -----------------------------
    + echo Building multi-thread xgboost failed
    Building multi-thread xgboost failed
    + echo Start to build single-thread xgboost
    Start to build single-thread xgboost
    + cmake .. -DUSE_OPENMP=0
    ./xgboost/build-python.sh: 27: ./xgboost/build-python.sh: cmake: not found
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-sqv2z78a/xgboost/setup.py", line 42, in <module>
        LIB_PATH = libpath['find_lib_path']()
      File "/tmp/pip-install-sqv2z78a/xgboost/xgboost/libpath.py", line 50, 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:
    /tmp/pip-install-sqv2z78a/xgboost/xgboost/libxgboost.so
    /tmp/pip-install-sqv2z78a/xgboost/xgboost/../../lib/libxgboost.so
    /tmp/pip-install-sqv2z78a/xgboost/xgboost/./lib/libxgboost.so
    /usr/xgboost/libxgboost.so
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
...