I met a error “distutils”…
I searched some blogs and Streamlit topics, but I cannot found the solution.
I changed python version from 3.12 to 3.10, 3.9…
and install setuptools…
But it didn’t works(Cannot deploy).
Plz help me…
Share the full text of the error message
import distutils.core
ModuleNotFoundError: No module named ‘distutils’
[notice] A new release of pip is available: 24.0 → 24.2
[notice] To update, run: pip install --upgrade pip
Checking if Streamlit is installed
────────────────────────────────────────────────────────────────────────────────────────
[12:31:39] installer returned a non-zero exit code
Share the Streamlit and Python versions.
(streamlit==1.27.2, python==3.9, 3.10, 3.11, 3.12)
Is there any plan for Streamlit to fix the error associated with distutils that have been used in Python’s past version? This means that we have to use Python’s past version because of this…
After Python 3.12 it will continue to be a later version, and I don’t think it’s right to keep this problem going, and even in the Advanced Settings settings section, the official Streamlit document explains that you can use Python 3.12 to distribute it, but there seems to be a problem…
I’m not a programmer, but just office man(HRD part). I’m trying to make a education course with streamlit platform. So, I want to inform you of the easy distribution process through the Streamlit platform after basic Python learning. However, from the perspective of general office workers, not programmers, errors that occur during the distribution process may occur, but it seems that the explanation such as how to resolve this error and what version should be changed to if it is wrong is not properly guided.
For example, this case is called the “distutils” problem in the error guide, and correcting it according to the solution in the error message does not solve this problem, and it does not solve it by trying to solve it through a variety of solutions that can be found in various other documents.
Upgrading the numpy version doesn’t solve it either.
I hope it’s a platform that’s easy to use from a non-developer’s point of view… (especially in the context of this error)
[Error Message]
ModuleNotFoundError: No module named 'distutils'
[notice] A new release of pip is available: 24.0 → 24.2
[notice] To update, run: pip install --upgrade pip
Unfortunately it is not feasible to anticipate every possible cause for an error. ModuleNotFoundError usually means that you need to install the missing package. But in this case it means that you are trying to install the wrong version of some package. The logs should tell you what package is causing the issue.
[08:36:24] ❗️ installer returned a non-zero exit code
[08:36:24] ❗️ Error during processing dependencies! Please fix the error and push an update, or try restarting the app.
[08:38:02] ❗️ Streamlit server consistently failed status checks
[08:38:02] ❗️ Please fix the errors, push an update to the git repo, or reboot the app.
and i don’t know how to fix and when i’m delete my requirements.txt and then i try back to deploy the eror no module from sklearn.pipeline import Pipeline found. can someone assist me