mac安装LightGBM with Anaconda
来源:互联网 发布:io域名是哪里 编辑:程序博客网 时间:2024/06/04 17:42
网上很多安装教程有误,或者是太老???
不如直接看官网教程
参考官网
https://github.com/Microsoft/LightGBM/blob/master/docs/Installation-Guide.rst#osx
https://github.com/Microsoft/LightGBM/tree/master/python-package
LightGBM depends on OpenMP for compiling, which isn't supported by Apple Clang.
Please install gcc/g++ by using the following commands:
brew install cmakebrew install gcc --without-multilib
Then install LightGBM:
git clone --recursive https://github.com/Microsoft/LightGBM ; cd LightGBMexport CXX=g++-7 CC=gcc-7mkdir build ; cd buildcmake ..make -j4
For Mac OS X users, gcc with OpenMP support must be installed first. Refer to Installation Guide for installing gcc with OpenMP support.
Note: 32-bit Python is not supported. Please install 64-bit version.
Install from PyPI Using pip
For Windows users, VC runtime is needed if Visual Studio (2015 or 2017) is not installed.
Install wheel via pip install wheel
first. After that download the wheel file and install from it:
pip install lightgbm
详细参考官网
最后有个问题 ,Anaconda Navigator中没有lightgbm,无法通过此来安装,然后上述安装的时候安装到本地的python3环境下了,问题是我使用Anaconda Navigator中的jupyterlab是Anaconda自己的python环境,和本地不是一个环境,我想在jupyterlab上使用lightgbm,怎么办?【网上没有解】
如下解决:
在本地的python3环境下,导入lightgbm包,使用lightgbm.__file__输出包的路径,然后在Anaconda的python3环境下,导入任意一个包(如xgboost),然后输出该路径;
最后将本地环境中的lightgbm包拷贝到Anaconda的python3包环境下
问题解决
- mac安装LightGBM with Anaconda
- windows Anaconda lightgbm 安装
- mac安装scipy,anaconda
- 在mac上配置LightGBM以及不同python版本在anaconda下环境配置
- Mac上Anaconda+Tensorflow安装
- Mac下安装Anaconda+Caffe
- 安装anaconda + opencv for mac
- Mac anaconda下安装opencv3
- lightgbm安装(GPU)+用例
- Linux 下安装LightGBM
- python安装LightGBM
- windows下安装LightGBM
- 机器学习----lightGBM安装
- LightGBM安装教程
- mac/linux 安装tensorflow和安装Anaconda
- Mac下安装OpenCV3.0和Anaconda
- 国内使用Mac Anaconda安装opencv
- 在MAC上Anaconda的安装
- 基于大数据学习算法的优惠券预测模型
- MySQL高可用架构之MHA
- Linux—压缩解压缩命令
- 图片文件上传技术分享 By ZoomLa!CMS
- 2017年中国人工智能产业最全研究报告发布 | AI世界2018年八大趋势
- mac安装LightGBM with Anaconda
- DEF盘全部不见怎么恢复
- django与vue开发中跨域请求问题
- JSON.stringify格式化Json字符串
- 链接文件
- QT选择目录等常用文件/文件夹操作
- 面试题整理--struts2与springmvc区别
- 公众号批量移动用户分组
- BeautifulSoup与requests爬取网页中文转码问题