# packaging.specifiers.InvalidSpecifier：无效的说明符：'>=1.0,<2.0'

- **ID:** `python/packaging-specifier-set-error`
- **领域:** python
- **类别:** data_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

说明符字符串包含逗号，这是不允许的；说明符必须用空格分隔或作为列表传递。

## 版本兼容性

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

## 解决方案

1. **** (95% 成功率)
   ```
   SpecifierSet('>=1.0 <2.0')
   ```
2. **** (90% 成功率)
   ```
   SpecifierSet(['>=1.0', '<2.0'])
   ```

## 无效尝试

- **** — Semicolons are also not valid separators in specifiers. (90% 失败率)
- **** — Quoting does not change the invalid syntax. (100% 失败率)
