Hello dear friends:
I am trying to run prophet in Python Script but I can’t. I just installed Python in my laptop. This is the error message: ModuleNotFoundError: No module named ‘prophet’
Many thanks in advance and best regards,
Gabriel
Hello dear friends:
I am trying to run prophet in Python Script but I can’t. I just installed Python in my laptop. This is the error message: ModuleNotFoundError: No module named ‘prophet’
Many thanks in advance and best regards,
Gabriel
Hi,
Do you use a conda environment where you installed prophet and have you selected this environment as default environment for the Python snippets, or are you selecting it with the Conda Environment Propagation node? Some screenshots might be helpful to understand your setup.
Kind regards,
Alexander
Hi,
Thanks for the screenshot. Have you configured Python in the KNIME preferences? If so, have you referenced a conda environment where prophet is installed?
Kind regards,
Alexander
Hi @Gabriel_Cornejo,
have a look at our guide on how to set up a Python environment which has specific packages like prophet installed: KNIME Python Integration Guide
Best regards
Steffen
I just configured Python in the KNIME preferences. I just downlaod prophet with Anaconda Prompt: “C:\users\gaboc\conda install -n py3_knime prophet”. I was trying with Conda Environment Propagation but it did not work. Pleased help me.
ModuleNotFoundError: No module named ‘prophet’
@Gabriel_Cornejo I would suggest to read about how to handle conda environment and KNIME:
Hello:
I was reading and following the instructions but my laptop not recommended to download Miniforge. It is dangerous to my laptop. What can I do???
Hi,
according to this post, it also differs depending on which browser you use to download. But in general there should not be a bigger problem with using it. Maybe you can also just use conda
instead of miniforge
? Did you try that?
Saludos
Steffen
@Gabriel_Cornejo well every software you download from the internet can pose a security risk. That is what this message is telling you. And of course if you are in a corporate environment you will have to make sure you are allowed to use such open source software. The security typically lies in the openness and the community. If such a popular Python installer would contain harmful code it should be detected early on.
The reason for using Miniforge is outlined in the mentioned article and has to do with licenses (see the part “Some material for the legal stuff.”). The same goes for the (nearly) exclusive use of “conda-forge”.
From my perspective Miniforge is a good choice but you can also use other python installers.
Some companies provide their own internal Python packe repository where the packages added would be inspected further.
Hello: I could run prophet, at least I could upload this library in Knime, but there is an error:
ERROR Python Script 3:10 Execute failed: RuntimeError: Error during optimization! Command ‘C:\Users\gaboc\anaconda3\envs\py3_knime\Lib\site-packages\prophet\stan_model\prophet_model.bin random seed=58100 data file=C:\Users\gaboc\AppData\Local\Temp\tmpy4co23t3\2fey4x9z.json init=C:\Users\gaboc\AppData\Local\Temp\tmpy4co23t3\3juhmkfp.json output file=C:\Users\gaboc\AppData\Local\Temp\tmpy4co23t3\prophet_modeljruznfv_\prophet_model-20231129133519.csv method=optimize algorithm=newton iter=10000’ failed:
Will anyone know how to solve this problem?
Thanks
That seems to be an issue with your prophet
commands. Without seeing the script we can only guess. But maybe try that command also on command line or somewhere else and double-check that it works. It looks like this is not an issue of KNIME
Best regards
Steffen
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.