# 错误：无效版本 '1.0.dev0'（期望类似 '1.0' 的版本号）

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

## 根因

当不使用符合 PEP 440 的版本控制时，setuptools 的版本解析器会拒绝某些预发布格式。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 3.5 | active | — | — |
| 3.6 | active | — | — |
| 3.7 | active | — | — |

## 解决方案

1. **** (90% 成功率)
   ```
   In setup.py: version='1.0.dev0'  # actually PEP 440 allows this; ensure setuptools >= 40.8.0
   ```
2. **** (85% 成功率)
   ```
   pip install --upgrade setuptools
   ```

## 无效尝试

- **** — Loses the dev marker and may confuse dependency resolution. (30% 失败率)
- **** — Deprecated and may cause other issues in modern environments. (70% 失败率)
