# 错误：'setuptools' 版本 '60.0.0' 无效：无效版本

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

## 根因

setup.py 或 pyproject.toml 中的版本字符串不符合 PEP 440，导致 setuptools 拒绝它。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 3.x | active | — | — |

## 解决方案

1. **** (95% 成功率)
   ```
   version='1.0.0'  # instead of '1.0.0-beta'
   ```
2. **** (90% 成功率)
   ```
   pip install setuptools_scm; in pyproject.toml: [tool.setuptools_scm]
   ```

## 无效尝试

- **** — May not reflect the actual version; could cause confusion or dependency issues. (70% 失败率)
- **** — setuptools will not proceed with an invalid version; build fails. (90% 失败率)
