GrepBoard/Manuals
605 manuals ·

Fix pip ERROR: No matching distribution found for a package

·Tested on Python 3.12.16 · 3.9.25 · pip 25.0.1 (Docker python:*-slim) · 2026-10·Test scope ↓·4 steps

pip No matching distribution found for means nothing installable fits your setup. The line above it splits name, network, Python version and wheel causes.

output
ERROR: Could not find a version that satisfies the requirement requests (from versions: none)ERROR: No matching distribution found for requests

pip's No matching distribution found for means that nothing in the list pip saw can be installed in your current environment. The line just above it tells you which cause you have. (from versions: none) is a clue that there was no installable candidate at all — pip got no list, the name is wrong, or no wheel fits this environment. A list of versions means candidates existed but the one you asked for is not among them. You may simply have typed a version that does not exist, so treat it as a Python-version problem only when an Ignored … Requires-Python line appears before it.

Line aboveCauseGo to
(from versions: none) + WARNING: Retrying …pip could not reach the index (DNS, proxy, firewall)[1]
(from versions: none) alonetypo, package does not exist, or it lives on another index[2]
Ignored the following versions that require a different python versionthe requested version does not support your Python[3]
package exists but (from versions: none)no wheel for this Python, OS or CPU[4]

[1] Rule out the network first. The output above came from a container with no network and --retries 0, and apart from the package name it has the same form as the typo case (compare [2]). The last two lines alone cannot tell a network problem from a wrong name. Allow one retry and the cause shows up:

console
$ python -m pip install --retries 1 --timeout 3 requests
output
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fb0b1b77290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/requests/ERROR: Could not find a version that satisfies the requirement requests (from versions: none)ERROR: No matching distribution found for requests

WARNING: Retrying means a connection problem, not a package problem. Without options, pip prints this warning up to its default (--retries 5) and then ends with the same error. Temporary failure in name resolution is DNS; see Temporary failure in name resolution. On a corporate network, run pip config list to check for index-url or proxy settings. If the warning line shows CERTIFICATE_VERIFY_FAILED, the connection worked but the certificate was not trusted, and the last two lines end exactly like this page's error — see Fix pip SSL: CERTIFICATE_VERIFY_FAILED.

[2] If you get (from versions: none) with no warning, check the name.

console
$ python -m pip install gblab-no-such-package-2026
output
ERROR: Could not find a version that satisfies the requirement gblab-no-such-package-2026 (from versions: none)ERROR: No matching distribution found for gblab-no-such-package-2026

See whether https://pypi.org/project/<name>/ exists. The install name often differs from the import name (import yaml is PyYAML, import cv2 is opencv-python). Before retyping a similar spelling, make sure the project on that page is the one you want: a name one letter off can be someone else's package entirely. For internal packages, check that pip is looking at your internal index (--index-url) rather than public PyPI.

[3] If a version list appears and is preceded by Ignored the following versions, it is a Python version problem. If the list appears without that line, first check that the version you asked for exists on that index. This is numpy==2.3.0 requested on Python 3.9 (lists shortened):

console
$ python -m pip install numpy==2.3.0
output
ERROR: Ignored the following versions that require a different python version: 2.1.0 Requires-Python >=3.10; … 2.3.0 Requires-Python >=3.11; … 2.5.4 Requires-Python >=3.12ERROR: Could not find a version that satisfies the requirement numpy==2.3.0 (from versions: 1.3.0, 1.4.1, … 2.0.0, 2.0.1, 2.0.2)ERROR: No matching distribution found for numpy==2.3.0

2.3.0 Requires-Python >=3.11 is the answer. The package declares that range, so pip dropped it from the candidates, and the last entry in (from versions: …), 2.0.2, is the highest version your Python can install. You have two options:

  • If you do not need that exact pin, drop ==2.3.0 or lower it to a range your Python accepts, such as numpy<2.1.
  • If you need that version, create a new venv with a Python that satisfies Requires-Python (3.11 or later in this example).

[4] If the package clearly exists on PyPI but you still get (from versions: none), there is no wheel that fits your environment. This happens with packages that publish only wheels and no source distribution (sdist). Check which tags pip accepts:

console
$ python -m pip debug --verbose 2>/dev/null | grep -A3 "Compatible tags"
output
Compatible tags: 1122  cp312-cp312-manylinux_2_41_x86_64  cp312-cp312-manylinux_2_40_x86_64  cp312-cp312-manylinux_2_39_x86_64

On the package's "Download files" page on PyPI, look for a file whose name contains parts matching these tags (cp312, manylinux…_x86_64). To check another environment ahead of time, use pip download with --python-version and --platform (per the pip docs these need --only-binary=:all: or --no-deps). Asking for the wheel-only torch==2.3.0 as Python 3.14:

console
$ python -m pip download --no-deps --only-binary=:all: --python-version 3.14 --platform manylinux2014_x86_64 -d /tmp/w torch==2.3.0
output
ERROR: Could not find a version that satisfies the requirement torch==2.3.0 (from versions: none)ERROR: No matching distribution found for torch==2.3.0

If you are on a just-released Python, an ARM machine or an Alpine (musl) image, check the "Download files" list for that tag first. If it is missing, wait for the package to publish wheels, or create a venv with a Python version that has them. If instead an sdist exists and pip falls back to a source build that fails, you get subprocess-exited-with-error rather than this error — see Fix pip subprocess-exited-with-error.

If the package installs but import fails, the cause is different; see ModuleNotFoundError after pip install.

#python#pip#pypi#requires-python