prophet icon indicating copy to clipboard operation
prophet copied to clipboard

Pyinstaller fail with Prophet

Open Ora243567 opened this issue 1 year ago • 2 comments

Hello everyone,

I wrote a Python script on Jupyter with several libraries including prophet. When I try to transform it into exe, the application is created but I have the error below :

Traceback (most recent call last): File "Untitled5.py", line 7, in ModuleNotFoundError: No module named 'prophet' [PYI-19624:ERROR] Failed to execute script 'Untitled5' due to unhandled exception! The application opens, displays the error and closes after 5 seconds.

Does anyone know how to fix this problem?

Thank you for the help!

Ora243567 avatar Mar 30 '25 13:03 Ora243567

In my case, adding add-binary parameter in pyinstaller command fixes problem.

--add-binary="C:\Users\asdf\miniconda3\envs\time\Lib\site-packages\prophet;prophet"

lim4349 avatar Mar 31 '25 05:03 lim4349

Hello @lim4349 and thank you for your reply. Should I first install the prophet package from the command prompt ?

Ora243567 avatar Apr 05 '25 09:04 Ora243567