Each time I try to deploy an app on streamlit cloud, I encounter errors.
I can deploy and run successfully streamlit apps locally on my computer. Key difference between locally deployed app and the one deployed on streamlit cloud is the “Requirements.txt” file.
I need help to understand how to create a correct Requirements.txt file
I need help on urgent basis.
I just had some issues with deploying an app as well, but I learnt the following things:
Name the file correctly: “requirements.txt” instead of “Requirements.txt” might make a difference (naming was my issue actually, cost me way more time then needed )
Only include packages in the requirements.txt that you actively import in your script-name.py file, and are not included in the standard python library (for example: don’t include “json” but do include “streamlit-tags”)
Make sure you don’t have multiple package-files as described here
I hope this will help you out!
Good luck with deploying your app!
Thanks for help. Using latest versions of Streamlit and all packages does help.
But I have another issue: I can deploy only one app on Streamlit cloud. If I try to deploy another app, previous one gives error. Any suggestion?
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
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.
Performance cookies
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.
Functional cookies
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.
Targeting cookies
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.