Streamlit run file_name.py SyntaxError: invalid syntax


I am trying to execute a streamlit application and I get the following error:

streamlit run file_name.py SyntaxError: invalid syntax

I installed Streamlit using conda and pip and I still get the same error after verifying installation with “pip list” and “conda list” commands… please help

Hi @ThulaniNyama, welcome to the Streamlit community!

To use Streamlit, you run streamlit run base_app.py outside of IPython, not inside. So the same way you made IPython come up, instead type in the Streamlit command.

Best,
Randy

1 Like

@randyzwitch thank you very much, I ran it from CMD after running the python command and its running faster than “Usian” :man_running:

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.