# Downgraded python, can't run streamlit

**URL:** <https://discuss.streamlit.io/t/downgraded-python-cant-run-streamlit/9561>\
**Category:** Using Streamlit\
**Created:** [February 6, 2021, 12:30am UTC](https://discuss.streamlit.io/t/downgraded-python-cant-run-streamlit/9561 "2021-02-06T00:30:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jackkoho](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/jackkoho/32/5657_2.png) [@jackkoho](https://discuss.streamlit.io/u/jackkoho)\
**Post date:** [February 6, 2021, 12:30am UTC](https://discuss.streamlit.io/t/downgraded-python-cant-run-streamlit/9561/1 "2021-02-06T00:30:16Z")

</div>

Hi,  
I unistalled Python 3.9 and installed Python 3.8. I have added to the path and deleted the Python3.9 vars from the path. When I try to run my program, I get:

![Capture](https://global.discourse-cdn.com/streamlit/original/2X/6/67716cff24b47563b19adcfab351b411afd53bfb.png)

I know that file is not there because I uninstalled Python 3.9. I do not know how to point it to the correct version of python. I’ve reinstalled Python 3.8 and Streamlit.

---

<div class="post-metadata">

**Author:** ![jackkoho](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/jackkoho/32/5657_2.png) [@jackkoho](https://discuss.streamlit.io/u/jackkoho)\
**Post date:** [February 6, 2021, 3:43pm UTC](https://discuss.streamlit.io/t/downgraded-python-cant-run-streamlit/9561/2 "2021-02-06T15:43:45Z")

</div>

Current solution is to use a virtualenv.

---

<div class="post-metadata">

**Author:** ![randyzwitch](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/randyzwitch/32/58772_2.png) [@randyzwitch](https://discuss.streamlit.io/u/randyzwitch)\
**Post date:** [February 8, 2021, 5:48pm UTC](https://discuss.streamlit.io/t/downgraded-python-cant-run-streamlit/9561/3 "2021-02-08T17:48:19Z")

</div>

Hi @jackkoho -

Using a virtualenv is generally our recommendation, as PATH issues can be tricky to debug. In this case, I would guess that Windows is having an issue figuring our where your Python packages are installed. Using a virtualenv makes it explicit where packages are installed, irrespective of your PATH variables.

Best,  
Randy

---

<div class="post-metadata">

**Author:** ![randyzwitch](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/randyzwitch/32/58772_2.png) [@randyzwitch](https://discuss.streamlit.io/u/randyzwitch)\
**Post date:** [May 13, 2022, 8:43pm UTC](https://discuss.streamlit.io/t/downgraded-python-cant-run-streamlit/9561/4 "2022-05-13T20:43:20Z")

</div>


