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.
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.