Error: Streamlit requires raw Python (.py) files

every time I try to run streamlit this error shows up and I don’t know how to fix it. can somebody help?
this is the code I run in the terminal : “streamlit run C:/Users/user/Desktop/Stock project/main.py”

I think the path is the problem, just try it with:
streamlit run main.py

… or quote the path alone.

1 Like