I would go through and try to minimize your dependencies down to the very minimal list. It looks like you have a lot of things that are probably irrelevant to your streamlit app, like jupyter, and everything is pinned to specific versions. See if you can go through and see what packages your app actually imports, and just list those in your requirements.txt. Also, unless you know that you need a specific version of a package, just leave the package name by itself, without any == – this will allow the solver to try and find a set of packages which are compatible.
Also, you shouldn’t have python in requirements.txt
This often happens when you try to install an old version of some package with a recent version of python. Unfortunately your screenshot doesn’t include some relevant parts of the logs (that’s why screenshots are not a good way of posting textual information), so we don’t know what is the package causing the issue.
I would still try to trim that down a lot more, and remove the specific version numbers as much as possible.
Since you’re just using a streamlit app, you can’t actually use Flask or Werkzeug, so I would drop those. I would also remove numpy, requests and pandas, since they are included streamlit streamlit.
I would also remove all the “If needed” packages, and add those back later if you do end up needing them.
If you know that you need a specific version of one or more of those, you could try specifying that version, but it will be easier for the solver if you only pin (meaning ==specific.version.number) a minimal number of dependencies.
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.