I'm a beginner at Kaggle
This is my first time using stackoverflow, so I think there are many things that I can't do, but please forgive me.
Installation of LightGBM does not work...
I installed it according to the official procedure.
In import lightgbm as lgb
, the error ImportError: cannot import name 'zip_'
appears.
Please let me know if anyone knows.Thank you.
Tried Apple Clang and gcc.
brew install libomp
and pip install wheel pip install lightgbm
.
I also tried installing it on anaconda from https://anaconda.org/conda-forge/lightgbm.
During installation, an error similar to the one in the picture above occurs.
I compared the contents of compat.py
to the local ~/.pyenv/versions/anaconda3-5.0.1/lib/python 3.6/site-packages/lightgbm/compat.py
as you pointed out in the comment, and it was the same.
I also tried installing on anaconda from https://anaconda.org/conda-forge/lightgbm, but
During installation, an error similar to the one in the picture above occurs.
As you pointed out in the comment, I compared the contents of compat.py
to the local ~/.pyenv/versions/anaconda3-5.0.1/lib/python 3.6/site-packages/lightgbm/compat.py
and it was the same.
import lightgbm as lgb
displays the error ImportError: cannot import name 'zip_'
, but the code for LightGBM
does not usually cause such an error.
I have compiled and installed LightGBM
, but there are no problems with GitHub's issu, except for the Clang
and gcc
versions.
Also, pyenv+anaconda may be convenient, but due to its specifications, it is easy to cause problems when using pip in anaconda or using the latest version of conda.
Considering this, I think it would be faster to start the installation again.
Also, LightGBM
has a binary version published on PyPI, so if you want to use the official Python, please use the following
pip3 install numpy scipy scikit-learn lightgbm
If it's Anaconda,
conda install-conda-forge lightgbm
can be installed in minutes.
596 Who developed the "avformat-59.dll" that comes with FFmpeg?
709 Uncaught (inpromise) Error on Electron: An object could not be cloned
1028 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
609 M2 Mac fails to install rbenv install 3.1.3 due to errors
689 GDB gets version error when attempting to debug with the Presense SDK (IDE)
© 2025 OneMinuteCode. All rights reserved.