Statsmodels.api not recognized by Python Script node
Hello. Knime Experts.
I am building a python script that starts with:
import knime.scripting.io as knio
import pandas as pd
import numpy as np
import statsmodels.api as sm
But Knime does not find statsmodels module in the environment:
However, statsmodels is installed in Anaconda:
And all the other packages in the conda environment (py3_knime) do appear in the environment:
Py3_knime is the Conda environment used by Knime:
Result: error when running script:
Executing the Python script failed: Traceback (most recent call last):
File “”, line 5, in
ModuleNotFoundError: No module named ‘statsmodels’
Can someone point out the simple error I am making?
Thank you!
Bill Bane