Getting an error "'streamlit' is not recognized as an internal or external command, operable program or batch file."

I’ve spent hours trying to fix this, looked at all the solutions on this page, and yours is the one that worked (especially since I needed admin access for some of the other ones). Thank you so much! I was installing Streamlit on a new computer, and never needed “python -m” on the old one.

1 Like

use the command:
python -m streamlit hello

4 Likes

I was stuck on this problem for more than 8 hours with an upcoming deadline…Thanks a lot this completely solved it!

1 Like

Worked for me!

1 Like

Thanks I lost 3 hours on this :heart:

2 Likes

I also lost unnecessary hours on this until using that -m command. Would be really nice to know why though. Anyway, Thank You!

1 Like

2 posts were split to a new topic: PySpark installation issue on Streamlit Cloud

worked like magic! Thanks a lot!

1 Like

It worked for me, tkx

2 Likes

Hi there,

This worked for me, but I added two variables on Path (I’M USING WIN 10):

C:\Users\name\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\Scripts

and

C:\Users\name\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310

1 Like

The best practice is to do your pip install after you activate your conda environment

conda create --name streamlit  python=3.8
conda activate streamlit  
pip3 install deta
1 Like

Thank you so much!

1 Like

thanks worked for me as well

1 Like

thank you it worked!

1 Like

This worked for me. Thank you

1 Like

I’m using a conda install from a ArcGIS pro and adding the conda path and the warning path as mentioned from Pablo_Racana solved the issue for me.

Thanks!

1 Like

Yup. Same with me, it works when using with python.

1 Like

Thank you
it works

1 Like

worked for me. Thank you

1 Like

Thanks so much. This really helped alot

1 Like