ERROR: No matching distribution found for
Problem
You receive the error ERROR: No matching distribution found for
when you deploy an app on Streamlit Cloud.
Solution
This error occurs when you deploy an app on Streamlit Cloud and have one or more of the following issues with your Python dependencies in your requirements file:
- The package is part of the Python Standard Library. E.g. You will see
ERROR: No matching distribution found for base64
if you includebase64
in your requirements file, as it is part of the Python Standard Library. The solution is to not include the package in your requirements file. Only include packages in your requirements file that are not distributed with a standard Python installation. - The package name in your requirements file is misspelled. Double-check the package name before including it in your requirements file.
- The package does not support the operating system on which your Streamlit app is running. E.g. You see
ERROR: No matching distribution found for pywin32
while deploying to Streamlit Cloud. Thepywin32
module provides access to many of the Windows APIs from Python. Apps deployed to Streamlit Cloud are executed in a Linux environment. As such,pywin32
fails to install on non-Windows systems, including on Streamlit Cloud. The solution is to either excludepywin32
from your requirements file, or deploy your app on a cloud service offering Windows machines.
Related forum posts:
- https://discuss.streamlit.io/t/error-no-matching-distribution-found-for-base64/15758
- https://discuss.streamlit.io/t/error-could-not-find-a-version-that-satisfies-the-requirement-pywin32-301-from-versions-none/15343/2