lightfm
lightfm copied to clipboard
"No module named '_lightfm_fast_no_openmp'" on a Macbook pro-2017
How do you solve the following thing that has happened on a MacBook pro-2017 (the computer is with version 10.15.3 Mac OS Catalina): When run a program in the 'lightfm' file, say 'lightfm_fast.py', the spyder (in Python 3.7.0) raises that: "No module named '_lightfm_fast_no_openmp'"?
So, What shall people do?
I appreciate someone who can help! Originally posted by @hixtc in https://github.com/lyst/lightfm/issues/193#issuecomment-597916346
Try to install the lib without openmp: Set the property use_openmp in setup.py to False and install again. https://github.com/lyst/lightfm/blob/1f3f35d2813393eb269073150fdf762ff19f0b42/setup.py#L147
This could make the train process more slow, but should work
Same issue here, both on MacOS M1 and on Ubuntu 20.04. Tried above recommendation without success.
This seems related to the issues here: https://github.com/scikit-learn/scikit-learn/issues/19137. The download seems to fail when installing the dependency on scipy
.