How to Install streamlit in Python

v1.56.0 Data & Science Python >=3.10

A faster way to build and share data apps

Install pip install streamlit

What is streamlit?

A faster way to build and share data apps

A faster way to build and share data apps.

Streamlit lets you transform Python scripts into interactive web apps in minutes, instead of weeks. Build dashboards, generate reports, or create chat apps. Once you’ve created an app, you can use our Community Cloud platform to deploy, manage, and share your app.

- Simple and Pythonic: Write beautiful, easy-to-read code. - Fast, interactive prototyping: Let others interact with your data and provide feedback quickly. - Live editing: See your app update instantly as you edit your script. - Open-source and free: Join a vibrant community and contribute to Streamlit's future.

Quick Start

Minimal example to get started with streamlit:

import streamlit as st
import pandas as pd

st.title("My Data App")
file = st.file_uploader("Upload CSV")
if file:
    df = pd.read_csv(file)
    st.dataframe(df)
    st.line_chart(df.select_dtypes("number"))
# Run: streamlit run app.py

Installation

pip (standard)

pip install streamlit

Virtual environment (recommended)

python -m venv venv
source venv/bin/activate   # Windows: venv\Scripts\activate
pip install streamlit

pip3

pip3 install streamlit

conda

conda install -c conda-forge streamlit

Poetry

poetry add streamlit

Dependencies

Installing streamlit will also install these packages:

Verify the Installation

After installing, confirm the package is available:

python -c "import streamlit; print(streamlit.__version__)"

If this prints a version number, installation succeeded. If you see a ModuleNotFoundError, see the errors section below.

Installation Errors

Common errors when installing streamlit with pip.

ModuleNotFoundError: No module named 'streamlit'

Cause: The package is not installed in the current Python environment.

Fix: Run pip install streamlit. If using a virtual environment, ensure it is activated first.

ModuleNotFoundError: No module named 'streamlit' (installed but still failing)

Cause: pip installed the package into a different Python than the one running your script.

Fix: Use python -m pip install streamlit to install into the interpreter you are running.

ImportError: cannot import name 'X' from 'streamlit'

Cause: The function or class does not exist in the installed version.

Fix: Check the version with pip show streamlit and upgrade with pip install --upgrade streamlit.

pip: command not found

Cause: pip is not in PATH or Python was not added to PATH during installation.

Fix: Try python -m pip install streamlit. On macOS/Linux try pip3.

PermissionError: [Errno 13] Permission denied

Cause: No write access to the system Python package directory.

Fix: Use a virtual environment, or add --user: pip install --user streamlit

SSL: CERTIFICATE_VERIFY_FAILED

Cause: pip cannot verify PyPI's SSL certificate — common behind corporate proxies.

Fix: Try: pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org streamlit

MemoryError when loading data

Cause: Dataset is too large to fit in RAM.

Fix: Read in chunks, filter columns on load, or consider Polars/Dask for out-of-core processing.

Recent Releases

VersionReleased
1.56.0 latest 2026-03-31
1.55.0 2026-03-03
1.54.0 2026-02-04
1.53.1 2026-01-22
1.53.0 2026-01-14

Full release history on PyPI →

Manage streamlit

Upgrade to latest version

pip install --upgrade streamlit

Install a specific version

pip install streamlit==1.56.0

Uninstall

pip uninstall streamlit

Check what is installed

pip show streamlit

Last updated: 2026-04-11 • Data from PyPI