# 错误：无效的版本说明符：'>=1.0, <2.0'（尾随逗号）

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

## 根因

版本说明符包含尾随逗号或其他语法错误（根据 PEP 440）。

## 版本兼容性

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

## 解决方案

1. **Remove the trailing comma** (95% 成功率)
   ```
   Change to '>=1.0,<2.0' (no space after comma)
   ```
2. **Use a comma-separated list without trailing punctuation** (90% 成功率)
   ```
   pip install 'package>=1.0,<2.0'
   ```

## 无效尝试

- **Adding more spaces around the comma** — The trailing comma is the issue, not spacing. (90% 失败率)
- **Using semicolon instead of comma** — Semicolons are not valid version specifier separators. (80% 失败率)
