# ERROR: Invalid wheel filename (wrong number of parts): 'foo-1.0-py3-none-any.whl.whl'

- **ID:** `python/pip-download-error-invalid-wheel-filename`
- **Domain:** python
- **Category:** data_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

A wheel file has an incorrect filename, often due to a double extension or malformed name. This can happen when downloading manually or from a misconfigured index.

## Version Compatibility

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

## Workarounds

1. **** (95% success)
   ```
   Re-download the wheel from PyPI using pip download: pip download <package> -d ./wheels.
   ```
2. **** (98% success)
   ```
   Install directly from PyPI instead of a local file: pip install <package>.
   ```

## Dead Ends

- **** — If the file content is also corrupted, renaming won't help. (50% fail)
- **** — Doesn't address the invalid filename; pip still rejects it. (90% fail)
