#python #linux #redhat #rhel
#python #linux #redhat #rhel
Вопрос:
я пытаюсь установить xgboost и TPOT на сервер Red Hat, но он отказывается делать это с помощью pip3. в настоящее время я получаю сообщение об ошибке, из которых это наиболее важные части.
copying xgboost/CMakeLists.txt -> build/temp.linux-x86_64-3.6/xgboost
copying xgboost/LICENSE -> build/temp.linux-x86_64-3.6/xgboost
INFO:XGBoost build_ext:Building from source. /tmp/pip-build-uvm9zqkr/lib/libxgboost.so
INFO:XGBoost build_ext:Run CMake command: ['cmake', 'xgboost', '-GUnix Makefiles', '-DUSE_OPENMP=1',
'-DUSE_CUDA=0', '-DUSE_NCCL=0', '-DBUILD_WITH_SHARED_NCCL=0', '-DHIDE_CXX_SYMBOLS=1', '-DUSE_HDFS=0',
'-DUSE_AZURE=0', '-DUSE_S3=0', '-DPLUGIN_LZ4=0', '-DPLUGIN_DENSE_PARSER=0',
DUSE_SYSTEM_LIBXGBOOST=0']
error: [Errno 2] No such file or directory: 'cmake': 'cmake'
Failed building wheel for xgboost
Running setup.py clean for xgboost
Failed to build xgboost
Installing collected packages: xgboost, tpot
Running setup.py install for xgboost ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-
build-uvm9zqkr/xgboost/setup.py';f=getattr(tokenize, 'open', open)
(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))"
install --record /tmp/pip-3em2gmv0-record/install-record.txt --single-version-externally-managed --
compile:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/xgboost
INFO:XGBoost build_ext:Run CMake command: ['cmake', 'xgboost', '-GUnix Makefiles', '-DUSE_OPENMP=1', '-DUSE_CUDA=0', '-DUSE_NCCL=0', '-DBUILD_WITH_SHARED_NCCL=0', '-DHIDE_CXX_SYMBOLS=1', '-DUSE_HDFS=0', '-DUSE_AZURE=0', '-DUSE_S3=0', '-DPLUGIN_LZ4=0', '-DPLUGIN_DENSE_PARSER=0', '-DUSE_SYSTEM_LIBXGBOOST=0']
error: [Errno 2] No such file or directory: 'cmake': 'cmake'
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-
uvm9zqkr/xgboost/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn',
'n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-3em2gmv0-
record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in
/tmp/pip-build-uvm9zqkr/xgboost/
Мне удалось установить xgboost на сервер через git. Я не могу установить TPOT через git, потому что установка, похоже, написана только для систем Debian, что оставляет меня в недоумении, что делать.
Ответ №1:
Сообщение об ошибке предполагает, что вам необходимо установить cmake.
Комментарии:
1. У меня уже есть, но, похоже, по какой-то причине он не может найти пакет, может быть, он находится в другом месте, чем то, где его ищут.
2. Где установлен двоичный файл? Этот каталог находится на вашем пути?