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

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

## 根因

wheel 文件名不符合 PEP 427 命名约定，通常是由于版本或平台标签不正确。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 3.8 | active | — | — |
| 3.9 | active | — | — |
| 3.10 | active | — | — |
| 3.11 | active | — | — |
| 3.12 | active | — | — |

## 解决方案

1. **Rebuild the wheel with correct naming** (90% 成功率)
   ```
   python setup.py bdist_wheel --universal
   ```
2. **Manually correct the filename per PEP 427** (85% 成功率)
   ```
   Rename to 'mypackage-1.0.0-py3-none-any.whl' (ensure version is in X.Y.Z format)
   ```

## 无效尝试

- **Renaming the file to a random name** — pip validates the structure; a random name will still fail. (90% 失败率)
- **Using --no-index flag** — This does not bypass filename validation. (80% 失败率)
