【问题标题】:How to install pycaret python library in mac Mojave如何在 mac Mojave 中安装 pycaret python 库
【发布时间】:2020-05-19 04:11:52
【问题描述】:

我想在 Mac Mojave 10.14 中安装 pycaret 库。

但是,当我尝试执行 pip3 install pycaret 时,出现以下错误 -

XGBoostLibraryNotFound: Cannot find XGBoost Library in the candidate path, did you install compilers and run build.sh in root path?

当我执行conda list 时,我会得到一个已安装库的列表。但是,我在那里找到了 2 个 xgboost 库 -

xgboost                   1.0.2            py36h0130604_1    conda-forge
xgboost                   1.1.0                     <pip>

我在网上看到了一些链接,其中 xgboost 是从源代码安装的。但是,我不想走那条路。

安装pycaret 的最佳方式是什么?

【问题讨论】:

    标签: python pip conda pycaret


    【解决方案1】:

    这可能会有所帮助(来自https://pycaret.org/install/

    对于 MAC 操作系统

    MAC 用户必须使用 Homebrew 单独安装 LightGBM,或者可以使用 CMake 和 Apple Clang(或 gcc)构建它。请参阅以下说明:

    安装 CMake(3.16 或更高版本):

    >> brew install cmake
    Install OpenMP
    >> brew install libomp
    

    在终端中运行以下命令:

    git clone --recursive https://github.com/microsoft/LightGBM ; cd LightGBM
    mkdir build ; cd build
    cmake ..
    make -j4
    

    【讨论】:

      猜你喜欢
      • 2022-12-12
      • 1970-01-01
      • 1970-01-01
      • 2019-07-12
      • 2019-03-15
      • 1970-01-01
      • 2022-12-18
      • 1970-01-01
      • 2019-09-25
      相关资源
      最近更新 更多