Cribber
Cribber

Reputation: 2913

Pip install does not find package, but pip search does

I want to install the hdbcli package (SAP HANA connector).

When I search with pip the package is being found, but when I want to install it, pip can't find the package.

Specifiying the current package also yields no results.

pip install hdbcli==2.6.61

How do I solve this?

> 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

Upvotes: 12

Views: 22478

Answers (3)

sinoroc
sinoroc

Reputation: 22295

This usually means pip could not find any distribution of that project that would be compatible with your python environment:

  • Python implementation (CPython, or PyPy, etc.)
  • Python interpreter major and minor version (3.10, or 3.11, etc.)
  • operating system (Windows, or Linux, etc.)
  • CPU bitness (64 bits or 32 bits)
  • version of glibc and other libraries (that's why pip on Alpine Linux might ignore Linux distributions that require glibc)

This project does not seem to have published any source distribution (sdist) ever. So it has to be a compatible wheel.

Are you by chance on Python 3.9? As far as I can tell there are no wheel distributions for Python 3.9.

Use path/to/pythonX.Y -m pip debug --verbose to get a list of "Compatible tags". Then compare this list with the list of available wheel distributions for that project.

Upvotes: 12

Novikov
Novikov

Reputation: 720

In my case, with hexbytes package. That helped me.

pip cache purge

The cache of pip, the one for all virtulenv.

Upvotes: 0

okie
okie

Reputation: 881

Try manual install. Maybe the library isnt sync

Upvotes: -1

Related Questions