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.
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
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.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.