Running streamlit with -m option requires `run` keyword

This page ( How do I run my Streamlit script? - Streamlit Docs
) says you can run streamlit app with the following command:

python -m streamlit your_script.py

But it seems it doesn’t work. In my environment with streamlit version 1.9.0, the following command is the working version:

python -m streamlit run your_script.py

Hi @kotaishr, welcome to the community! :wave: :partying_face:

That was a typo in the docs which we’ve since fixed. Thank you for flagging it! As you’ve noted, the right command is:

python -m streamlit run your_script.py
1 Like

Thank you!