I connected my Github to Streamlit cloud to deploy my app. Originally the app was using python 3.7 (and was working fine), but I changed it to python 3.8 and updated the poetry poetry.lock and pyproject.toml in my Github repo accordingly (I also made some package version updates such as scikit-learn so that they are compatible with python 3.8).
However, I get an error when the app tried to update or I reboot it:
Installing dependencies from lock file
SolverProblemError
The current project's Python requirement (3.7.13) is not compatible with some of the required packages Python requirement:
- scikit-learn requires Python >=3.8, so it will not be satisfied for Python 3.7.13
I can’t figure out where python 3.7 is specified (except in settings when I deployed the app initially).
When I got to the app settings, I don’t see any option for advanced settings to change to python 3.8 (I only see sharing and secret tabs).
Creating a new app worked. Definitely wish there was a way to update python versions without deleting and re-creating the app.
I was partly worried about breaking the URL link (since the new app has a new hash in the URL). But turns out this isn’t an issue (the shareable URL from the old app still takes me to the new app).
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.