─────────────────────────────────────── uv ───────────────────────────────────────────Using uv pip install. × No solution found when resolving dependencies: ╰─▶ Because the current Python version (3.12.7) does not satisfy Python>=3.10,<3.12 and streamlit-ydata-profiling==0.2.1 depends on Python>=3.10,<3.12, we can conclude that streamlit-ydata-profiling==0.2.1 cannot be used. And because you require streamlit-ydata-profiling==0.2.1, we can conclude that the requirements are unsatisfiable.Checking if Streamlit is installed─────────────────────────────────────────────────────────────────────────────────────
facing this error while deploying on the streamlit working fine on local host
Based on the error message, it looks like one of your dependencies doesn’t support python 3.12 yet (Python>=3.10,<3.12) – if you go to your app settings and change the python version to 3.11, I would guess that it will work.
Ah, sorry – I thought there was a way to change it in settings. You might need to delete the app and re-create it. And, when you re-create it, you can click “Advanced Settings” and select a different python version.
Note that you could probably also change your requirements.txt to not specify a specific version of that package, and that might work instead of changing your python version.
I did some fiddling with the app and dependencies – I think the streamlit_pandas_profiling package was really the issue, was just out of date. Fortunately, the ydata-profiling package works as a standalone package if you just use st.html(profile.html)
Here’s my version of the app, and requirements.txt which now works – it’s currently running on python 3.12
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.