简体   繁体   English

如何在 mac Mojave 中安装 pycaret python 库

[英]How to install pycaret python library in mac Mojave

I want to install pycaret library in Mac Mojave 10.14.我想在 Mac Mojave 10.14 中安装pycaret库。

However when I try to do pip3 install pycaret I get below error -但是,当我尝试执行pip3 install pycaret时,出现以下错误-

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

When I do conda list I get a list of libraries installed.当我执行conda list时,我会得到一个安装的库列表。 However, I find 2 xgboost libraries there -但是,我在那里找到了 2 个 xgboost 库 -

xgboost                   1.0.2            py36h0130604_1    conda-forge
xgboost                   1.1.0                     <pip>

I have seen some links online wherein xgboost is installed from source.我在网上看到了一些链接,其中 xgboost 是从源代码安装的。 However, I dont want to go through that route.但是,我不想通过那条路线 go 。

What is the best way to install pycaret ?安装pycaret的最佳方法是什么?

This might help (from https://pycaret.org/install/ )这可能会有所帮助(来自https://pycaret.org/install/

For MAC OS对于 MAC 操作系统

MAC users will have to install LightGBM separately using Homebrew, or it can be built using CMake and Apple Clang (or gcc). MAC 用户必须使用 Homebrew 单独安装 LightGBM,或者可以使用 CMake 和 Apple Clang(或 gcc)构建。 See the instructions below:请参阅以下说明:

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

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

Run the following commands in terminal:在终端中运行以下命令:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM