statsmodels error

I am beginner in Knime. It would be appreciated if you advise me. I install statsmodels in python. However in knime I receive the error of " no module named statsmodels’’. I Check the integration of knime and python but the problem is not solved.
Thank you!

Hi @ntehraniy and welcome to the Knime community.

Did you import it in your code?
import statsmodels.api as something

1 Like

Also, if you have multiple Python environments in place, make sure that the environment you installed statsmodels into is the one that KNIME is actually using.

You can double check this in File → Preferences → KNIME → Python from the KNIME side. Assuming you use Anaconda, you can check this from the Python side by using the activate and conda list commands at an Anaconda prompt.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.