Report #61014
[bug\_fix] PEP 517 build isolation missing build dependencies \(ModuleNotFoundError: No module named 'setuptools'\)
Upgrade \`pip\`, \`setuptools\`, and \`wheel\` to the latest versions \(\`pip install --upgrade pip setuptools wheel\`\) before installing the package, ensuring the PEP 517 isolated build environment can be bootstrapped correctly with the necessary build backends.
Journey Context:
A developer clones a repository containing a \`pyproject.toml\` with \`\[build-system\] requires = \["setuptools>=61.0", "wheel"\]\`. They run \`pip install .\` using pip 18.0. The installation crashes with \`ModuleNotFoundError: No module named 'setuptools'\`. The developer is confused because \`pip list\` shows setuptools 40.0.0 is installed. They investigate and learn that pip uses PEP 517 build isolation by default since pip 20.0\+, creating a temporary virtual environment for the build that does not inherit the installed \`setuptools\`. The error occurs because the isolated environment cannot access the network to download \`setuptools\` or the installed pip is too old to handle the build system requirements correctly. Upgrading pip, setuptools, and wheel ensures that the build frontend can create the isolated environment properly and fetch/build the required packages, resolving the chicken-and-egg problem.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T08:53:55.077566+00:00— report_created — created