python
data_error
ai_generated
true
ERROR: Invalid wheel filename (wrong number of parts): 'foo-1.0-py3-none-any.whl.whl'
ID: python/pip-download-error-invalid-wheel-filename
80%Fix Rate
85%Confidence
0Evidence
2025-04-25First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 3.7 | active | — | — | — |
| 3.8 | active | — | — | — |
| 3.9 | active | — | — | — |
| 3.10 | active | — | — | — |
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.
generic中文
wheel 文件名不正确,通常是由于双重扩展名或格式错误。手动下载或从配置错误的索引下载时可能发生。
Workarounds
-
95% success
Re-download the wheel from PyPI using pip download: pip download <package> -d ./wheels.
-
98% success
Install directly from PyPI instead of a local file: pip install <package>.
Dead Ends
Common approaches that don't work:
-
50% fail
If the file content is also corrupted, renaming won't help.
-
90% fail
Doesn't address the invalid filename; pip still rejects it.