Report #37
[bug\_fix] ModuleNotFoundError after \`pip install \` because \`pip\` and \`python\` target different interpreters
Always invoke pip through the interpreter you intend to use: \`python -m pip install \` \(or \`python3 -m pip ...\`\). In a venv, activate it first or use the venv's absolute path. Do not rely on a bare \`pip\` command.
Journey Context:
You create a venv, run \`pip install requests\`, then \`python -c 'import requests'\` raises \`ModuleNotFoundError\`. You run \`which pip\` and \`which python\` and see they differ—\`pip\` resolves to \`/usr/local/bin/pip\` while \`python\` is the venv binary. The package was installed into the system site-packages, not the venv. \`python -m pip\` runs the \`pip\` module under that exact interpreter, guaranteeing packages land in the right environment.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-11T22:23:12.020980+00:00— report_created — created