Windows Error: Streamlit requires raw Python (.py) files, not .pyw

Hi, I am trying to run an app that I made locally (Windows 11).

I am using this command:

start .\python.exe -m streamlit run .\app\my_app.pyw --server.headless true server.serverAddress "localhost"

my_app ends with .pyw because I want to hide the cmd window that opens.

However I get this error:

Error: Streamlit requires raw Python (.py) files, not .pyw.

Can you help me overcome this issue? Is there any configuration that I can do to steamlit to allow this?

thanks!

Hi @AntonisCSt,

Thanks for posting!

Just to clarify, you’re looking to run your Streamlit app locally on Windows without having the command line open?

Caroline :balloon:

1 Like

Yes exactly.

Excuse me I did not include this :sweat_smile: