I want to share another way to deploy streamlit on Windows. This solution uses pynsist, a python package for building windows installer through
nsis, instead of pyinstaller. This solution should work both on Windows and on Linux.
Here you can find a minimal example of a working application, which also includes plotly.
Hope this can help!