iT邦幫忙

0

python 3. (anaconda)安裝lightgbm出現錯誤(Mac)

  • 分享至 

  • xImage

安裝完成出現下錯誤訊息
網路搜尋試了好多方式還是一樣
有人有解決的方法嗎
求解,謝謝

Traceback (most recent call last):
File "", line 1, in
File "/opt/anaconda3/lib/python3.8/site-packages/lightgbm/init.py", line 8, in
from .basic import Booster, Dataset, Sequence, register_logger
File "/opt/anaconda3/lib/python3.8/site-packages/lightgbm/basic.py", line 110, in
_LIB = _load_lib()
File "/opt/anaconda3/lib/python3.8/site-packages/lightgbm/basic.py", line 101, in _load_lib
lib = ctypes.cdll.LoadLibrary(lib_path[0])
File "/opt/anaconda3/lib/python3.8/ctypes/init.py", line 459, in LoadLibrary
return self._dlltype(name)
File "/opt/anaconda3/lib/python3.8/ctypes/init.py", line 381, in init
self._handle = _dlopen(self._name, mode)
OSError: dlopen(/opt/anaconda3/lib/python3.8/site-packages/lightgbm/lib_lightgbm.so, 6): no suitable image found. Did find:
/opt/anaconda3/lib/python3.8/site-packages/lightgbm/lib_lightgbm.so: mach-o, but wrong architecture
/opt/anaconda3/lib/python3.8/site-packages/lightgbm/lib_lightgbm.so: mach-o, but wrong architecture

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

1
海綿寶寶
iT邦大神 1 級 ‧ 2021-11-26 10:01:44

這篇的寫法
可以試試看conda install lightgbm

如果你已經是用這個指令安裝
那就繼續等待正解了

我要發表回答

立即登入回答