Report #102855
[bug\_fix] ModuleNotFoundError: No module named 'pandas'
Activate the correct virtual environment using \`source venv/bin/activate\` \(Linux/macOS\) or \`.\\venv\\Scripts\\activate\` \(Windows\), then install pandas with \`pip install pandas\`.
Journey Context:
A developer was working on a data analysis script that used pandas. They created a virtual environment \(venv\) at the start of the project but forgot to activate it in the new terminal. When they ran \`python script.py\`, they got ModuleNotFoundError. They checked \`pip list\` and saw pandas was not listed, but it was installed globally in the system Python. They assumed a global install was enough, but the venv was isolated. After hours of confusion—they reinstalled pandas, checked Python paths, and even compared sys.path—they realized the terminal was still using the global interpreter. Activating the virtual environment made the interpreter inside the venv the default, and the script ran successfully.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-09T15:46:56.298779+00:00— report_created — created