# Fixing Streamlit from always running using python 2

**URL:** <https://discuss.streamlit.io/t/fixing-streamlit-from-always-running-using-python-2/9098>\
**Category:** Using Streamlit\
**Created:** [January 22, 2021, 10:05pm UTC](https://discuss.streamlit.io/t/fixing-streamlit-from-always-running-using-python-2/9098 "2021-01-22T22:05:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frazer\_Kirkman](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/frazer_kirkman/32/5376_2.png) [@Frazer\_Kirkman](https://discuss.streamlit.io/u/Frazer_Kirkman)\
**Post date:** [January 22, 2021, 10:05pm UTC](https://discuss.streamlit.io/t/fixing-streamlit-from-always-running-using-python-2/9098/1 "2021-01-22T22:05:19Z")

</div>

Hi everyone, I wanted to how I fixed this problem incase anyone else comes across it in the future.  
Streamlit was always running on python 2, even though I had updated system with pyenv to 3.8 and set that as the default.

$ streamlit hello  
/Users/frazer/Library/Python/2.7/lib/python/site-packages/requests/ **init**.py:91: RequestsDependencyWarning:  
**IMPORTANT: This version of Streamlit is the last that one that**  
**will be supported on this version of Python!!!**

So, I found and commented this out in my .bash\_profile  
#export PATH=/Users/YOU/Library/Python/2.7/bin:$PATH

and now it works a treat.

Hope this is helpful.

Frazer

---

<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:** [January 25, 2021, 3:38pm UTC](https://discuss.streamlit.io/t/fixing-streamlit-from-always-running-using-python-2/9098/2 "2021-01-25T15:38:55Z")

</div>

Hi @Frazer_Kirkman, welcome to the Streamlit community!

That’s a great reminder that PATH variables can make a mess out of the local environment 🙂

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:** [February 7, 2022, 3:52pm UTC](https://discuss.streamlit.io/t/fixing-streamlit-from-always-running-using-python-2/9098/3 "2022-02-07T15:52:35Z")

</div>


