'pycaret.classification error: Reason: image not found

I have repeatedly tried to run the following command:

from pycaret.classification import *

But I always get this error:

dlopen(/Users/xxxxx/opt/anaconda3/lib/python3.8/site-packages/lightgbm/lib_lightgbm.so, 6): Library not loaded: /usr/local/opt/libomp/lib/libomp.dylib Referenced from: /Users/xxxxx/opt/anaconda3/lib/python3.8/site-packages/lightgbm/lib_lightgbm.so Reason: image not found

Many thanks in advance.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source