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

问题描述 投票:0回答:3

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

当我用

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

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

pip install hdbcli==2.6.61

我该如何解决这个问题?

> pip search hbdcli
hdbcli (2.6.61) - SAP HANA Python Client

> pip install hdbcli
ERROR: Could not find a version that satisfies the requirement hdbcli (from versions: none)
ERROR: No matching distribution found for hdbcli
python python-3.x pip
3个回答
9
投票

这通常意味着 pip 找不到该项目的任何 distribution 与您的 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
获取“兼容标签”列表。然后将此列表与该项目的可用 wheel 发行版的列表进行比较。


0
投票

就我而言,带有

hexbytes
包。这对我有帮助。

pip cache purge

pip 的缓存,所有 virtulenv 的缓存。


-1
投票

尝试手动安装。 也许图书馆不同步

© www.soinside.com 2019 - 2024. All rights reserved.