安装 xgboost 报错ERROR: Command "python setup.py egg_info" failed with error code 1 in /private/var/fold
Table of Contents
1、报错
完整报错如下:
ERROR: Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/ht/3_tnvbcx1z10_rbdcnyntqgc0000gn/T/pip-install-mw7juk0i/xgboost/
2、解决办法
1)执行命令
brew install cmake
2)pip 安装 xgboost
pip install xgboost
3、结果
4、补充
cmake 官网定义:CMake is an open-source, cross-platform family of tools designed to build, test and package software. CMake is used to control the software compilation process using simple platform and compiler independent configuration files, and generate native makefiles and workspaces that can be used in the compiler environment of your choice. The suite of CMake tools were created by Kitware in response to the need for a powerful, cross-platform build environment for open-source projects such as ITK and VTK.
官网链接:https://cmake.org/