# 错误：package-1.0.0-py3-none-any.whl 不是有效的 wheel 文件名。

- **ID:** `python/pip-install-error-invalid-wheel`
- **领域:** python
- **类别:** data_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

wheel 文件不符合 PEP 427 命名约定，导致 pip 拒绝安装。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 3.x | active | — | — |

## 解决方案

1. **** (90% 成功率)
   ```
   pip download package --only-binary :all:
   ```
2. **** (85% 成功率)
   ```
   pip wheel package --no-binary :all:
   ```
3. **** (80% 成功率)
   ```
   Ensure the format is {distribution}-{version}(-{build tag})?-{python tag}-{abi tag}-{platform tag}.whl
   ```

## 无效尝试

- **** — Renaming alone may not fix internal metadata mismatches. (70% 失败率)
- **** — Force reinstall does not bypass filename validation. (95% 失败率)
- **** — Newer pip still enforces valid wheel filenames. (90% 失败率)
