安装lightgbm报错ModuleNotFoundError: No module named 'setuptools.wheel'

本文记录了在Mac环境下安装lightgbm时遇到的ModuleNotFoundError: No module named 'setuptools.wheel'错误。通过尝试conda更新所有包,以及在Anaconda Navigator中更新setuptools,最终解决了问题。
摘要由CSDN通过智能技术生成

Mac安装lightgbm命令

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

brew install cmake
brew install gcc --without-multilib

git clone --recursive https://github.com/Microsoft/LightGBM ; cd LightGBM
mkdir build ; cd build
cmake ..
make -j4
 
cd ../python-package
sudo python setup.py install

pip install lightgbm

在进行到sudo python setup,py install时报错

Traceback (most recent call last):
  File "setup.py", line 299, in <module>
    'Topic :: Scientific/Engineering :: Artificial Intelligence'])
  File "/Users/hely/anaconda/envs/python36/lib/python3.6/site-packages/setuptools/__init__.py", line 129, in setup
    return distutils.core.setup(**attrs)
  File "/Users/hely/anaconda/envs/python36/lib/python3.6/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/Users/hely/anaconda/envs/python36/lib/python3.6/distutils
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值