python install_error ai_generated true

错误:找不到满足需求 nonexistent-package 的版本(可用版本:无)

ERROR: Could not find a version that satisfies the requirement nonexistent-package (from versions: none)

ID: python/pip-install-no-matching-distribution

其他格式: JSON · Markdown 中文 · English
80%修复率
88%置信度
0证据数
2024-01-10首次发现

版本兼容性

版本状态引入弃用备注
3.x active — — —

根因分析

包名拼写错误,或者该包在 PyPI 或配置的索引上不存在。

English

The package name is misspelled or the package does not exist on PyPI or the configured index.

generic

解决方案

  1. 90% 成功率
    pip search nonexistent-package  # or visit pypi.org
  2. 70% 成功率
    pip install -i https://test.pypi.org/simple/ nonexistent-package

无效尝试

常见但无效的做法:

  1. 95% 失败

    Cache is not the issue; the package simply doesn't exist.

  2. 80% 失败

    If the package is not on the new index either, it still fails.