I try to run an app locally. while I write on VS code terminal streamlit run Streamlit.py its showing this error msg every time…
python version :311
streamlit version: latest
OS :windows
browser :edge
I am pretty new to this so please help me!!!
streamlit : The term ‘streamlit’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling
of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
Thank you for the warm welcome!..
I use the vs code for making the dash apps…
For installing the streamlit I opened my vs code create a new folder in my local disk D (where my other dash programs are present) the in terminal I wrote pip install streamlit… that’s it… then I write two lines “import streamlit as st
st.write(‘hello world!’)” hit the run button then in terminal I wrote streamlit run myapp.py…the error is showing----
PS E:\Data Analyst\Libreries> & “C:/Users/Mrinmay Khmarui/AppData/Local/Microsoft/WindowsApps/python3.11.exe” “c:/Users/Mrinmay Khmarui/Desktop/Streamlit.py”
2024-05-30 09:40:45.297
Warning: to view this Streamlit app on a browser, run it with the following
command:
streamlit run c:/Users/Mrinmay Khmarui/Desktop/Streamlit.py [ARGUMENTS]
PS E:\Data Analyst\Libreries> streamlit run Streamlit.py
streamlit : The term ‘streamlit’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling
of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
I have the same error - for me the problem is that the streamlit command is not in my path.
Which leads me to the question: what is the name of the streamlit command on Windows 10? (“streamlit.exe”? I can’t find that)
Also, where is that command typically installed in the directory structure?
Knowing that will allow me to add the proper directory to my path. It may also be the solution for you (if you haven’t found it already) @mrinalmayank7
Aside: I am convinced that not having the command in my path is the problem because I can use
python -m streamlit test.app
to start streamlit and everything works as expected.