No module named 'matplotlib' when deploying app


this is my .txt file
beautifulsoup4==4.10.0
gensim==3.8.3
Keras==2.4.3
matplotlib==3.3.2
nltk==3.5
numpy==1.19.2
pandas==1.1.3
Pillow==9.0.0
requests==2.24.0
Sastrawi==1.0.1
scikit_learn==1.0.2
seaborn==0.11.0
selenium==4.1.0
snscrape==0.4.3.20220106
streamlit==1.4.0
tensorflow==2.4.1
textblob==0.17.1
webdriver_manager==3.5.2
wordcloud==1.6.0

i manage to build the App on local host, but when deploy it seems streamlit doesn’t ‘have’ the matplot package

Hi @ahengg, welcome to the Streamlit community!

Can you post a link to your GitHub repo?

Best,
Randy

hello @randyzwitch here’s the link : GitHub - ahengg/ANALISIS-SENTIMEN-DARI-KEYWORDS-YANG-DIMASUKAN-PENGGUNA-DI-TWITTER-INDONESIA

Hi @ahengg,

It appears you have resolved the matplotlib related error by uploading your requirements.txt file.

Let us know if this is not the case.

Best, :balloon:
Snehan

https://share.streamlit.io/ahengg/analisis-sentimen-dari-keywords-yang-dimasukan-pengguna-di-twitter-indonesia/main/stream.py

you can check it in here, now the error has changed cannot import keras,even though i dont use it now but i will used it later for the development

You import Keras on line 11:

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.