# 错误：找不到满足要求 mypackage[extra] 的版本（可用版本：无）

- **ID:** `python/pip-requirements-extras-not-found`
- **领域:** python
- **类别:** config_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

指定的额外选项（例如 [extra]）在 PyPI 上的包中不存在。

## 版本兼容性

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

## 解决方案

1. **Check the package's available extras on PyPI** (95% 成功率)
   ```
   Visit https://pypi.org/project/mypackage/ or run `pip show mypackage` to see the list of extras.
   ```
2. **Install the package without extras and manually add dependencies** (80% 成功率)
   ```
   `pip install mypackage` then `pip install dependency1 dependency2` (as listed in the package's documentation).
   ```

## 无效尝试

- **Assuming the extra is misspelled and trying random variations** — Without knowing the correct extra name, guesses are unlikely to succeed. (70% 失败率)
- **Installing the package without the extra** — This may miss required dependencies for the desired functionality. (30% 失败率)
