Fix 'pip install externally managed environment' Error - How to Resolve Python Memory Errors with Large Files-Resolving index.lock Exists Error in VS Code

Final checklist
- Confirm that the same symptom is gone after a restart or refresh.
- Keep the smallest working change and undo temporary diagnostic settings.