Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ModuleNotFoundError: No module named 'mlxtend'

Hello Everyone,

I have an issue I have to immediately deal with it. I installed mlxtend and used the library for apriori(market research). In my first attempt it worked then next day I tried to update it with new data but it gives exactly this error ModuleNotFoundError: No module named 'mlxtend'. And I read everywhere to find where my mistake is? Sadly, I couldn't find it. I updated my mlxtend to current version however, again I faced with the exact, same problem. When I try to install mlxtend I got this as it is expected "Requirement already satisfied". I would appreciate and be glad if you have any suggestions? By the way, thanks to everyone who read this.

like image 487
user14635144 Avatar asked Nov 20 '25 20:11

user14635144


1 Answers

Are you installing it in the Conda shell or somewhere else? To ensure it gets installed in the correct environment type

%pip install mlxtend

from within the Jupyter notebook (in a cell at the top) that you are working in and execute that cell. If it installs successfully you can comment out that cell or remove it.

like image 56
Sanardi Avatar answered Nov 22 '25 08:11

Sanardi