Fixing Streamlit from always running using python 2

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

1 Like

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 :slight_smile:

Best,
Randy