How to install openpyxl in streamlit cloud

I have put openpyxl in my requirememts.txt file and still getting error ImportError: Missing optional dependency ‘openpyxl’. when deployed my app.

Hi @nitinbhardwaj28

Yes that is correct on adding openpyxl to requirements.txt file. Was this added after the app was deployed. It often helps to also reboot the app in order to ensure that the newly added library is installed after the server reboots.

Hope this helps!

Thanks for the reply . after rebooting the server still not able to resolve the issue .

also added my my requiremet.txt file content.


Hi @nitinbhardwaj28

Could you recheck the spelling of the file, it’s currently misspelled (missing an n and an s):

It should be requirements.txt