Search code examples
pythonpython-3.xpip

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

Solution

  • 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.