IMPORTANT: This version of Streamlit is the last that one that will be supported on this version of Python! Please upgrade to Python 3.5 or higher if you want to use the latest Streamlit

I cloned my github into an ec2 instance
I installed streamlit on the github repository hosted in the cloud and this is the message that has been displayed:
IMPORTANT: This version of Streamlit is the last that one that

will be supported on this version of Python!!!

Please upgrade to Python 3.5 or higher if you want to use the latest

Streamlit.

I have installed python 3.7.9 using this

Hi @yemu10, welcome to the Streamlit community!

If you have installed a higher version of Python, but are still getting this message, then you are likely pointing to the wrong version of Python (a common issue).

When you run python --version on your instance, what do you get?

python --version
Python 2.7.18

python3 --version
Python 3.7.9

Yeah, so in this case, you’ve probably installed Streamlit using pip install streamlit, but because your version of Python 3 is aliased to python3, you probably need to do the following:

pip uninstall streamlit #removes Streamlit for Python 2
pip3 install streamlit
streamlit run file.py

thank you very much

1 Like