# ValueError：无效的版本号 '1.0.0-beta'

- **ID:** `python/setuptools-invalid-version-string`
- **领域:** python
- **类别:** data_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

版本字符串不符合 PEP 440 版本方案。

## 版本兼容性

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

## 解决方案

1. **Use PEP 440 compliant version** (95% 成功率)
   ```
   version='1.0.0b1'
   ```
2. **Use local version identifier** (80% 成功率)
   ```
   version='1.0.0+build.1'
   ```

## 无效尝试

- **Removing the pre-release tag** — Loses version information. (40% 失败率)
- **Using underscores instead of hyphens** — Still invalid. (50% 失败率)
