python
module_error
ai_generated
true
ModuleNotFoundError: No module named 'setuptools'
ID: python/setuptools-no-module-named-setuptools
80%Fix Rate
86%Confidence
0Evidence
2025-11-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 3.8 | active | — | — | — |
| 3.9 | active | — | — | — |
Root Cause
setuptools is not installed in the current Python environment.
generic中文
当前 Python 环境中未安装 setuptools。
Workarounds
-
90% success Install setuptools via ensurepip
python -m ensurepip --upgrade
-
80% success Install from source
curl -O https://bootstrap.pypa.io/ez_setup.py && python ez_setup.py
Dead Ends
Common approaches that don't work:
-
Installing setuptools with pip
30% fail
May fail if pip is also missing.
-
Using easy_install
50% fail
Deprecated and may not work.