Streamlit deploy problem ImportError of common python packages

When deploying on Streamlit Cloud it failed with the following ImportError. This occurs when import common python packages such as matplotlib, seaborn, scipy, etc. In my local Windows (with Anaconda installations) it runs without issues. Does anyone know how to fix this? Thanks!

  File "/home/appuser/.conda/lib/python3.7/site-packages/matplotlib/", line 46, in <module>
    from matplotlib._path import (
ImportError: /usr/lib/x86_64-linux-gnu/ version `GLIBCXX_3.4.29' not found (required by /home/appuser/.conda/lib/python3.7/site-packages/matplotlib/

Link to source code

Can you try adding a packages.txt file with this line and see if that resolves the issue?


Did not resolve the issue for me. I wonder if it’s something on your end. I suppose I can switch to pip in requirements.txt, but I’d rather stick with conda. Thanks.

Hello there sir i am facing issues while deployment of my application, the error is that error while installing requirements.

Kindly sir help me out

@blackary: thanks for the suggestion but it doesn’t solve the problem yet.

@LuanNguyen We’ve been able to deploy the app here without issues:

Could you try deleting and redeploying with python 3.9?

@blackary I do not mean to take attention away from @LuanNguyen , but I am chiming in because I am experiencing the same problem. I tried redeploying with 3.9 even before I changed packages.txt, but to no avail. My code is at . Thanks!

The app is here