i am getting this error while deploying my app.
i have seaborn in my requirments.txt file but still it’s occuring.
i am getting this error while deploying my app.
typo, the file should be called:
requirements.txt
yup. good catch
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.
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:
keras
ist part of the tensorflow
library, you have to change the import statement:from tensorflow.keras.models import load_model
Your import
statements are scattered all over the place, this is bad practice, collect all imports in the header of the file.
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.