Fix 'Permission Denied' When Using pip in VS Code Terminal - Fix Git 'index.lock file exists' Error-How to Fix pip install Permission Denied on Linux

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