Report #43853
[bug\_fix] ModuleNotFoundError: No module named 'requests'
Activate the virtual environment before running Python to ensure the interpreter matches where pip installed the package. Use \`source venv/bin/activate\` \(Linux/macOS\) or \`venv\\Scripts\\activate\` \(Windows\), or explicitly invoke the venv's Python binary: \`./venv/bin/python script.py\`.
Journey Context:
You install a package using \`pip install requests\` and see it succeed. You then run \`python script.py\` and it crashes with ModuleNotFoundError. You check \`which python\` and \`which pip\` and realize they point to different directories—pip installed to the venv but \`python\` is the system binary because the venv isn't activated. Activating the venv makes \`python\` point to the venv binary, so the import succeeds.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T04:04:52.379926+00:00— report_created — created