# 错误：无效的wheel文件名：'my_pkg-1.0-py3-none-any.whl' - wheel文件名必须采用以下形式：{distribution}-{version}(-{build tag})?-{python tag}-{abi tag}-{platform tag}.whl

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

## 根因

wheel文件名不符合PEP 427命名约定，通常由于标签缺失或分隔符错误。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 3.10 | active | — | — |

## 解决方案

1. **** (90% 成功率)
   ```
   python setup.py bdist_wheel
   ```
2. **** (80% 成功率)
   ```
   mv my_pkg-1.0-py3-none-any.whl my_pkg-1.0-py3-none-any.whl (ensure underscores and hyphens correct)
   ```
3. **** (85% 成功率)
   ```
   pip wheel . --no-deps
   ```

## 无效尝试

- **** — May still not meet the spec. (70% 失败率)
- **** — Pip refuses to install. (100% 失败率)
- **** — Must be .whl. (90% 失败率)
