No module named statsmodels in python script

I am new to Knime and I always get the error “no module named statsmodels in python script” on executing the script. I want to have a seasonal arima model. How can I make it work? My code with import statsmodels.api as sm in jupyter notebook. Is there a way this works in Knime for sarima model?

@IndrishaBasu welcome to the KNIME forum.

Have you installed the package in your Python environment that you use for KNIME?

For general insights into how to combine KNIME and Python you could read the official guide and also this discussion:

5 Likes

@mlauber71 Thanks! It worked. Had to install the package in the environment.

2 Likes

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