I encountered an ImportError while attempting to import PyCaret's classification module:
from pycaret.classification import*
ImportError: cannot import name 'interp' from 'scipy'
This error occurs when Python is unable to find the interp function within the SciPy library.
It seems that PyCaret's classification module relies on the 'interp' function from SciPy, but for some reason, Python is unable to locate it. This could be due to a version mismatch or a corrupted installation of the SciPy library.
How to resolve this issue?
This happened because there was a minor version release of SciPy
1.12.0with breaking changes. You could fix this by installing the previous version with the commandpip install scipy==1.11.4