I need help fixing this error when I wanna deploy my app

import distutils.core
ModuleNotFoundError: No module named 'distutils'


[notice] A new release of pip is available: 24.0 -> 24.3.1
[notice] To update, run: pip install --upgrade pip
Checking if Streamlit is installed

────────────────────────────────────────────────────────────────────────────────────────

[10:06:01] ❗️ installer returned a non-zero exit code
[10:06:01] ❗️ Error during processing dependencies! Please fix the error and push an update, or try restarting the app.
[10:07:41] ❗️ Streamlit server consistently failed status checks
[10:07:41] ❗️ Please fix the errors, push an update to the git repo, or reboot the app.

The relevant details must be above that.

1 Like

Distutils was removed in Python 3.12. Make sure you are setting the version of Python when you deploy. Community Cloud defaults to Python 3.12 currently.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.