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?
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 app.py 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.
Thank you for your response.
Perhaps, it could be created an additional py file to start the app. Using like that:
But even that, I have no idea how to pack the app to exe because app needs to execute local server as well