Ramya Ramesh
Ramya Ramesh

Reputation: 23

ModuleNotFoundError: No module named 'pycaret.arules'

I want to use the Association Rule Mining package from PyCaret. I installed the same using:

pip install pycaret[full]

However, when I try to import the arules module, I get the ModuleNotFoundError:

>>> from pycaret.arules import *
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'pycaret.arules'

What should I do to be able to use the association rule mining module?

Upvotes: 2

Views: 1253

Answers (1)

Ro.oT
Ro.oT

Reputation: 2093

Arules module was removed from Pycaret versions 3.x. If you really need to use Arules, then you need to downgrade your Pycaret to at least 2.3.10. I tested with Pycaret 2.3.5 and it works fine:

pip install pycaret==2.3.5

Upvotes: 2

Related Questions