# ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/root/.cache/pip'

- **ID:** `python/pip-no-cache-dir-permission`
- **Domain:** python
- **Category:** system_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The user does not have write permission to the pip cache directory, often when running as non-root in a root-owned environment.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.6 | active | — | — |
| 3.7 | active | — | — |
| 3.8 | active | — | — |
| 3.9 | active | — | — |

## Workarounds

1. **** (95% success)
   ```
   pip install --cache-dir $HOME/.cache/pip pkg
   ```
2. **** (90% success)
   ```
   pip install --no-cache-dir pkg
   ```

## Dead Ends

- **** — May change ownership and cause permission issues for other users. (50% fail)
- **** — May not be advisable in shared environments. (40% fail)
