How to pack the app by pyinstaller

Hello experts,
I want to pack the app to .exe executable file by pyinstaller, because the app just can run in localhost in policy, but I have no idea how to handle it. Is that a standard introduction about pyinstaller tool? Or other tools could achieve that?

Thank you very much.

I think you are not supposed to do that. First off, if you run an executable that pyinstaller gave you, you wont be running the streamlit run command, you’ll be “running” the python command, so your streamlit app will never go live.

I have no experience with using pyinstaller together with streamlit yet, but if you search here in the forum for pyinstaller or stlite you will find some helpful threads about packaging streamlit into a single app.

1 Like

Thank you for your response.
Perhaps, it could be created an additional py file to start the app. Using like that:
streamlit._is_running_with_streamlit=True‘’,‘streamlit run’,,{})
But even that, I have no idea how to pack the app to exe because app needs to execute local server as well