pip install 找不到包,但 pip search 找到

Cri*_*ber 9 python pip python-3.x

我想安装hdbcli软件包(SAP HANA 连接器)。

当我搜索pip该包时,找到了该包,但当我想安装它时,pip却找不到该包。

指定当前包也不会产生任何结果。

pip install hdbcli==2.6.61
Run Code Online (Sandbox Code Playgroud)

我该如何解决这个问题?

pip install hdbcli==2.6.61
Run Code Online (Sandbox Code Playgroud)

sin*_*roc 8

这通常意味着pip无法找到与您的 python 环境兼容的该项目的任何发行版:

  • Python 实现(CPython 或 PyPy 等)
  • Python解释器主要次要版本(3.10或3.11等)
  • 操作系统(Windows、Linux等)
  • CPU位数(64位或32位)

该项目似乎从未发布过任何源代码发行版sdist)。所以它必须是兼容的轮子。

您偶然使用了 Python 3.9 吗?据我所知,Python 3.9没有Wheel发行版。

用于获取“兼容标签path/to/pythonX.Y -m pip debug --verbose”列表。然后将此列表与该项目的可用车轮发行版列表进行比较。