Installing in python2.7 results in streamlit --version==0.55

I use pip install --upgrade streamlit in python2.7 venv, but the installed version is streamlit 0.55.2; when I install in python3.7.1, the version is 0.66.

How can I solve the problem of version in python 2.7?

Hello @zhaoqf123, welcome to the community.

Unfortunately as you are experiencing it, Streamlit no longer runs on Python 2 since Version 0.56, so you’ll need to get on the Python 3.5+ wagon for Streamlit 0.56+.

If you don’t want to break your Python 2 setup, you may try installing Streamlit in a Python 3 virtual environment (check out the Anaconda page for that).