# ERROR: Invalid archive: /path/to/package.tar.gz - Not a valid gzip file

- **ID:** `python/pip-invalid-archive`
- **Domain:** python
- **Category:** data_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The downloaded archive is corrupted or not in the expected gzip format.

## Version Compatibility

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

## Workarounds

1. **Download the package from an alternative source** (85% success)
   ```
   Use a different PyPI mirror: pip install -i https://pypi.org/simple/ package
   ```
2. **Clear pip cache and retry** (80% success)
   ```
   Run: pip cache purge; then pip install package
   ```

## Dead Ends

- **Re-downloading the same file from the same source** — If the source is corrupted, re-downloading won't help. (80% fail)
- **Using a different decompression tool like 7zip** — The file itself is invalid, not a decompression issue. (90% fail)
