How to Install bokeh in Python
Interactive plots and applications in the browser from Python
pip install bokeh
What is bokeh?
Interactive plots and applications in the browser from Python
Bokeh is an interactive visualization library for modern web browsers. It provides elegant, concise construction of versatile graphics and affords high-performance interactivity across large or streaming datasets. Bokeh can help anyone who wants to create interactive plots, dashboards, and data applications quickly and easily.
Consider making a donation if you enjoy using Bokeh and want to support its development.
To install Bokeh and its required dependencies using , enter the following command at a Bash or Windows command prompt:
Quick Start
Minimal example to get started with bokeh:
import bokeh
print(bokeh.__version__)
Installation
pip (standard)
pip install bokeh
Virtual environment (recommended)
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install bokeh
pip3
pip3 install bokeh
conda
conda install -c conda-forge bokeh
Poetry
poetry add bokeh
Dependencies
Installing bokeh will also install these packages:
Verify the Installation
After installing, confirm the package is available:
python -c "import bokeh; print(bokeh.__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 bokeh with pip.
ModuleNotFoundError: No module named 'bokeh'
Cause: The package is not installed in the current Python environment.
Fix: Run pip install bokeh. If using a virtual environment, ensure it is activated first.
ModuleNotFoundError: No module named 'bokeh' (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 bokeh to install into the interpreter you are running.
ImportError: cannot import name 'X' from 'bokeh'
Cause: The function or class does not exist in the installed version.
Fix: Check the version with pip show bokeh and upgrade with pip install --upgrade bokeh.
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 bokeh. 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 bokeh
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 bokeh
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
| Version | Released |
|---|---|
3.10.0.dev3 |
2026-04-03 |
3.10.0.dev2 |
2026-03-11 |
3.9.0 latest |
2026-03-11 |
3.9.0rc1 |
2026-03-06 |
3.10.0.dev1 |
2026-02-26 |
Manage bokeh
Upgrade to latest version
pip install --upgrade bokeh
Install a specific version
pip install bokeh==3.9.0
Uninstall
pip uninstall bokeh
Check what is installed
pip show bokeh