How to Streasmlit app covert to exe (original) (raw)

November 16, 2025, 9:58am 1

see this link How to convert Streamlit app into .exe Executable file? | by Mehul Gupta | Data Science in Your Pocket | Medium

I followed the instructions provided in the above link to convert a Streamlit application into an executable file (EXE). However, I encountered an error, which I have documented in the attached picture. Please review it and provide me with the correct code to successfully convert the Streamlit app to an EXE.

thank you in advance for your help

see error

I followed the instructions provided in the above link to convert a Streamlit application into an executable file (EXE). However, I encountered an error, which I have documented in the attached picture. Please review it and provide me with the correct code to successfully convert the Streamlit app to an EXE.

thank you in advance for your help

image

image

image

AlSweigart (Al Sweigart) November 17, 2025, 10:17pm 2

Does this error happen when you are building the .exe program or afterwards, when you run the .exe program?

Gustyper (Gustavo Bianchi da Silva) February 1, 2026, 1:44pm 3

Hello, Muhammad!

I faced the same issue a while ago and couldn’t achieve success with any tutorial. I came up with a JavaScript injection solution that works fine on Windows and uses solely PyInstaller. You can check it here: Github