# ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python3.10/site-packages/package'

- **ID:** `python/pip-install-permission-denied`
- **Domain:** python
- **Category:** system_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The user lacks write permissions to the system site-packages directory.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.8 | active | — | — |
| 3.9 | active | — | — |
| 3.10 | active | — | — |

## Workarounds

1. **Install with --user flag** (90% success)
   ```
   pip install --user package_name
   ```
2. **Create a virtual environment** (95% success)
   ```
   python -m venv myenv && source myenv/bin/activate && pip install package_name
   ```

## Dead Ends

- **Using sudo pip install** — Risky and may break system Python packages. (40% fail)
- **Changing directory permissions** — May cause system instability. (30% fail)
