# 错误：无效的版本字符串：'1.0.0-beta'

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

## 根因

Setuptools使用PEP 440版本规范；'1.0.0-beta'不符合规范；应为'1.0.0b1'。

## 版本兼容性

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

## 解决方案

1. **Use PEP 440 compliant version** (95% 成功率)
   ```
   version='1.0.0b1'
   ```
2. **Use setuptools_scm for automatic versioning** (90% 成功率)
   ```
   pip install setuptools_scm
# setup.py
setup(use_scm_version=True)
   ```

## 无效尝试

- **Using '1.0.0-beta1'** — Still not PEP 440 compliant; hyphen not allowed for pre-releases. (80% 失败率)
- **Removing pre-release label entirely** — Loses version semantics; may cause confusion. (60% 失败率)
