python
config_error
ai_generated
true
错误:找不到满足要求 mypackage[extra] 的版本(可用版本:无)
ERROR: Could not find a version that satisfies the requirement mypackage[extra] (from versions: none)
ID: python/pip-requirements-extras-not-found
80%修复率
85%置信度
0证据数
2024-12-01首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| 3.8 | active | — | — | — |
| 3.9 | active | — | — | — |
| 3.10 | active | — | — | — |
根因分析
指定的额外选项(例如 [extra])在 PyPI 上的包中不存在。
English
The specified extra (e.g., [extra]) does not exist for the package on PyPI.
解决方案
-
95% 成功率 Check the package's available extras on PyPI
Visit https://pypi.org/project/mypackage/ or run `pip show mypackage` to see the list of extras.
-
80% 成功率 Install the package without extras and manually add dependencies
`pip install mypackage` then `pip install dependency1 dependency2` (as listed in the package's documentation).
无效尝试
常见但无效的做法:
-
Assuming the extra is misspelled and trying random variations
70% 失败
Without knowing the correct extra name, guesses are unlikely to succeed.
-
Installing the package without the extra
30% 失败
This may miss required dependencies for the desired functionality.