ModuleNotFoundError: "Seaborn"

i am getting this error while deploying my app.


i have seaborn in my requirments.txt file but still it’s occuring.

Hi @playerongrou could you share your requirements.txt file contents of github repo link?

this is the github repo
still the same error is showing.

typo, the file should be called:

requirements.txt
1 Like

yup. good catch :slight_smile:

thanks for pointing out that typo , but after changing that , it’s showing like this…

You requirements.txt file is crammed with unnecessary packages and packages that won’t install on streamlit cloud. Clean it up and deploy again.

yes, i deleted those unnecessary packages. but now it’s showing dependency error.


can you tell me what version of protobuf or tensorflow i should keep in the requirements.txt file.
It’s working fine the locally but then why it’s showing error while deploying.
thanks in advance. :pray:

As far as I have briefly skimmed the code, the following libraries should be sufficient in the requirements.txt file:

numpy
pandas
pandas-datareader
matplotlib
seaborn
plotly
Pillow
scipy
statsmodels
scikit-learn
streamlit
streamlit-option-menu
tensorflow
yfinance

Some remarks:

  1. keras ist part of the tensorflow library, you have to change the import statement:
from tensorflow.keras.models import load_model
  1. Your import statements are scattered all over the place, this is bad practice, collect all imports in the header of the file.

  2. If there are still conflicts between libraries during pip installation, leave out the version numbers of the libraries, the pip installer can resolve this itself.

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