How do I upgrade to the latest version of Streamlit?

We recommend upgrading to the latest official release of Streamlit so you have access to the newest, cutting-edge features. If you haven't installed Streamlit yet, please read our Installation guide. It helps you set up your virtual environment and walks you through installing Streamlit on Windows, macOS, and Linux. Regardless of which package management tool and OS you're using, we recommend running the commands on this page in a virtual environment.

If you've previously installed Streamlit and want to upgrade to the latest version, here's how to do it based on your dependency manager.

Streamlit's officially-supported environment manager for macOS and Linux is Pipenv.

  1. Navigate to the project folder containing your Pipenv environment:
cd myproject
  1. Activate that environment, upgrade Streamlit, and verify you have the latest version:
pipenv shell pip install --upgrade streamlit streamlit version

Or if you want to use an easily-reproducible environment, replace pip with pipenvevery time you install or update a package:

pipenv update streamlit pipenv run streamlit version
  1. Activate the conda environment where Streamlit is installed:
conda activate $ENVIRONMENT_NAME

Be sure to replace$ENVIRONMENT_NAME ☝️ with the name your conda environment!

  1. Update Streamlit within the active conda environment and verify you have the latest version:
conda update -c conda-forge streamlit -y streamlit version

In order to get the latest version of Streamlit with Poetry and verify you have the latest version, run:

poetry update streamlit streamlit version

Still have questions?

Our forums are full of helpful information and Streamlit experts.