← Back to list

Installing LightGBM on an M1 Macbook

Installing LightGBM on an M1 Mac

Caritasem · 2026-07-04 12:06 · 0 claps · 0.7 min read
#lightgbm #macbook-m1 #apple-silicon-macs
Open on Medium ↗

Installing LightGBM on an M1 Macbook

Installing LightGBM on an M1 Mac

While setting up LightGBM on my M1 Mac, I discovered that the default pip install lightgbm command does not work due to compatibility issues with Apple Silicon and libomp dependencies.

After trying various fixes, including setting environment variables and reinstalling libomp via Homebrew, I still encountered installation errors with:

pip install lightgbm --no-binary :all:

After some research, I found a solution that worked: creating a new Conda environment and installing LightGBM using Conda-Forge:

conda install \
    --yes \
    -c conda-forge \
    'lightgbm>=4.6.0'

This approach successfully installed LightGBM without further issues.

For more details and troubleshooting options, I found this Stack Overflow discussion useful.

Ref:

https://www.caritasem.com/2025/11/macbook-arm-lightgbm/


메타데이터
post_id
5ffeadaa39de
slug
installing-lightgbm-on-an-m1-macbook-5ffeadaa39de
url
https://medium.com/@caritasem_45534/installing-lightgbm-on-an-m1-macbook-5ffeadaa39de
canonical_url
https://medium.com/@caritasem_45534/installing-lightgbm-on-an-m1-macbook-5ffeadaa39de
author_url
https://medium.com/@caritasem_45534
status
ok
fetched_at
2026-07-09 16:18:44