我想下载LightGbm,因此我关注了该网站。但是突然因错误而停止了。请发布解决方案。
谢谢https://lightgbm.readthedocs.io/en/latest/Installation-Guide.html#macos
错误:
cmake ..
CMake Error at /usr/local/Cellar/cmake/3.13.0/share/cmake/Modules/CMakeDetermineCCompiler.cmake:48 (message):
Could not find compiler set in environment variable CC:
gcc-7.
Call Stack (most recent call first):
CMakeLists.txt:7 (PROJECT)
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "/Users/kj/LightGBM/build/CMakeFiles/CMakeOutput.log".
答案 0 :(得分:1)
您的环境变量CC设置为gcc-7
,但是无法使用$ PATH变量访问此编译器。
尝试在终端上写入gcc-7
,会出现Command not found
错误。