Problems using bokeh

Hi, I’m new to Streamlit and I’m doing some tests to learn about it.

When I connect GitHub with Streamlit to run a Python code, which uses Bokeh, I get this message:

[client] Connecting…

2022-05-10 09:09:34.697 Uncaught app exception

Traceback (most recent call last):

File “/home/appuser/venv/lib/python3.7/site-packages/streamlit/scriptrunner/”, line 475, in _run_script

exec(code, module.__dict__)

File “/app/streamlit_app/”, line 2, in

from bokeh.plotting import figure

ModuleNotFoundError: No module named ‘bokeh’

I don’t know how I can install Bokeh, right now I’m using the example in this link:

Thanks for helping me in advance!

Add to your requirements.txt:


Hi @Charlie1, welcome to the community!! :wave: :partying_face:

To install Python dependencies (such as bokeh), create a requirements.txt file, add each Python dependency on a new line, and upload the file to your repo. Streamlit Cloud parses your requirement.txt file and installs the specified Python dependencies.

In summary, upload a requirements.txt file containing the following:


Note: You can use pipreqs to generate a requirements file for you by running:

pipreqs /home/project/location


1 Like