If you’re creating a debugging post, please include the following info:
- Are you running your app locally or is it deployed?
It is deployed using GitHUb
- If your app is deployed:
a. Is it deployed on Community Cloud or another hosting platform?
b. Share the link to the public deployed app.
- Share the link to your app’s public GitHub repository (including a requirements file).
- Share the full text of the error message (not a screenshot).
- Share the Streamlit and Python versions.
Hello @Mukesh_Mishra1,
Here are some steps to troubleshoot:
- Ensure that the version of
pandas
you are using locally matches the one specified in your requirements.txt
file. You can check your local version by running:
pip show pandas
- If you haven’t specified a version for
pandas
in your requirements.txt
, it’s a good practice to do so. This ensures the same version is used during deployment. Specify the version like so:
pandas==x.y.z
- Compatibility between your Streamlit version, Python version, and
pandas
could also be an issue. Make sure to specify compatible versions in your requirements.txt
file. For example:
streamlit==x.y.z
python-x.y.z
Hope this helps!
Kind Regards,
Sahir Maharaj
Data Scientist | AI Engineer
P.S. Lets connect on LinkedIn!
➤ Want me to build your solution? Lets chat about how I can assist!
➤ Join my Medium community of 30k readers! Sharing my knowledge about data science and AI
➤ Website: https://sahirmaharaj.com
➤ Email: sahir@sahirmaharaj.com
➤ 100+ FREE Power BI Themes: Download Now
3 Likes