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.
- Navigate to the project folder containing your Pipenv environment:
- Activate that environment, upgrade Streamlit, and verify you have the lastest version:
pipenv shell pip install --upgrade streamlit streamlit version
Or if you want to use an easily-reproducible environment, replace
pipenvevery time you install or update a package:
pipenv update streamlit pipenv run streamlit version
- Activate the conda environment where Streamlit is installed:
conda activate $ENVIRONMENT_NAME
Be sure to replace
$ENVIRONMENT_NAME ☝️ with the name your conda environment!
- Update Streamlit within the active conda environment and verify you have the lastest 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 lastest version, run:
poetry update streamlit streamlit version