Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pycharm: cannot import lightfm

I tried to load the movie_lens dataset using the code below

from lightfm.datasets import fetch_movielens

running this i am getting: ImportError: No module named 'lightfm.datasets'; 'lightfm' is not a package

like image 598
Akhil Alexander Avatar asked Feb 13 '26 18:02

Akhil Alexander


1 Answers

It sounds like the lightfm package is not installed in your environment. You can check in File>Project Structure>SDKs make sure lightfm is present in the Packages tab of the environment you're using for your project. Otherwise you can add the package from that same window.

like image 87
MyRandomName Avatar answered Feb 15 '26 07:02

MyRandomName



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!