# pip: Could not find a version that satisfies the requirement / No matching distribution found — how to fix it

> ERROR: Could not find a version that satisfies the requirement X (from versions: none), followed by No matching distribution found for X, means pip searched the package index and found no release of X it can install here. The name is wrong (often the import name instead of the package name), the pinned version does not exist, every release needs a different Python, no file fits your platform, or pip is looking at the wrong index or cannot reach it. The versions list in the message tells you which.

Source: https://livops.dev/en/guides/error-pip-no-matching-distribution

By Livops team, the people who build and run Livops. Updated 1 December 2026.

pip prints two lines when it cannot find anything to install[1][2]:

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

and, when releases were skipped because they need another Python, one more line before them[1][2]:

```text
ERROR: Ignored the following versions that require a different python version: 2.0.0 Requires-Python >=3.11
ERROR: Could not find a version that satisfies the requirement somepackage==2.0.0 (from versions: 1.0.0, 1.1.0)
ERROR: No matching distribution found for somepackage==2.0.0
```

With pip 26.0's `--only-final` option in effect the first line says `Could not find a final version`[1][3]. Same failure, same fixes. This page explains what pip counts as a version, how to read the list in the message, the six causes from the most common, and how to check a `requirements.txt` before you deploy it.

## What does the error mean?

pip asked the package index for every file of the project and kept only those it can install here. A wheel is skipped when none of its tags fit your interpreter and platform; any file is skipped when its `Requires-Python` excludes the Python you run[2]. Only files that pass become candidates, and the versions in `(from versions: ...)` are those candidates, sorted; when there are none, pip writes `none`[2]. If none of the candidates satisfies your requirement, pip stops with `No matching distribution found`[1].

So the versions list is the clue:

| The message shows | Look at |
| --- | --- |
| `(from versions: none)` | The name (cause 1), the platform (cause 4), the index or network (causes 5, 6) |
| Versions, but not the one you pinned | The pin (cause 2) |
| `Ignored the following versions that require a different python version` | Your Python version (cause 3) |
| `Ignored the following yanked versions` | Releases their authors withdrew (yanked); pick another version[1] |

## Causes, most common first

### 1. The name is wrong

A typo, or the name you **import** instead of the name the package is **published** under. They do not have to match: the distribution `Pillow` provides the import package `PIL`, one distribution can provide several import packages, and package indexes enforce no relationship between the names[5].

Case and separators are not the problem: names are compared lowercased, with runs of `.`, `-` and `_` treated as one `-`, so `Friendly-Bard` and `friendly_bard` are the same project[6].

**Fix:** find the project's page on [pypi.org](https://pypi.org) and copy the name from its install line. Do not guess by installing whatever matches the import name: the packaging guide warns that can install an unintended, and potentially even malicious, package[5].

```text
Pillow          # not PIL
```

### 2. The version you pinned does not exist

The versions list shows what exists for you. A pin to a version that was never released, or a typo in it, fails here. Pre-releases count only when asked for: by default pip finds stable versions only; `--pre` includes pre-release and development versions, and so does a requirement that itself names a pre-release[9].

**Fix:** pin one of the versions in the list, or write a floor instead of an exact pin:

```text
somepackage>=1.1     # instead of somepackage==2.0.0
```

### 3. Every matching release needs a different Python

A package declares the Python versions it supports in `Requires-Python`, for example `Requires-Python: >=3.6`, and installers may use it when picking a release[7]. pip skips releases whose `Requires-Python` excludes your Python and names them in the `Ignored the following versions that require a different python version` line[1][2]. When every release that matches your pin is skipped, the result is this error.

**Fix:** run a Python the release supports, or pin an older release that supports yours. pip has `--ignore-requires-python`[9], but the authors said the release does not support your Python, so the failure may only move to import time or run time.

```sh
python --version
pip index versions somepackage --python-version 3.12
```

### 4. No file fits your platform

Some projects publish only wheels, and a wheel fits only the Python, ABI and platform in its tags: `cp312` is CPython 3.12, `manylinux_2_28_x86_64` a glibc 2.28+ Linux on x86-64, and `musllinux_*` the musl-based systems such as Alpine[8]. When a release has no source distribution and no wheel for your combination, every file is skipped as `none of the wheel's tags (...) are compatible`, and the list can be `none`[2]. Common cases: a Python version newer than the project's latest wheels, Alpine where only `manylinux` wheels exist, and an ARM machine where only x86-64 wheels exist.

**Fix:** use a Python version and platform the project publishes wheels for, or a release that has them. `pip debug --verbose` shows the tags your pip accepts[2]; compare them with the file names on the project's PyPI page.

### 5. pip is looking at the wrong index

`--index-url` **replaces** the default, `https://pypi.org/simple`; `--extra-index-url` searches another index in addition[9]. Any pip option can also come from an environment variable named `PIP_<UPPER_LONG_NAME>`, for example `PIP_INDEX_URL`, or from a configuration file; `pip config debug` shows which files are read[14]. A stray index setting on a server makes public packages vanish, and a private package is not on PyPI at all.

**Fix:** point pip at the index that has the package. Index options can go on their own lines in `requirements.txt`, and a `${VARIABLE}` there is read from the environment, which keeps a token out of git[13]:

```text
--extra-index-url https://${PRIVATE_INDEX_TOKEN}@pypi.example.com/simple
our-internal-package==1.4.0
```

pip takes credentials from the URL, from `.netrc`, or from a keyring[12].

### 6. pip cannot reach the index

If every package fails with `(from versions: none)`, even one you know exists, pip is not getting answers. On a network that needs an outbound proxy, set it with `--proxy scheme://[user:passwd@]proxy.server:port` or the standard `http_proxy`, `https_proxy` and `no_proxy` variables[11].

## How to check before you deploy

List what the index offers, for the Python you deploy on. `pip index versions` prints the available versions[4], and pip 25.1 removed its experimental warning[3]:

```sh
pip index versions somepackage
pip index versions somepackage --python-version 3.12 --pre
```

It takes `--index-url` for a private index[4]. To check a whole `requirements.txt` against another Python version and platform, download wheels for it; `--python-version` and `--platform` need `--only-binary=:all:` (or `--no-deps`)[10]:

```sh
pip download --only-binary :all: --python-version 3.12 \
  --platform manylinux2014_x86_64 -d /tmp/wheels -r requirements.txt
```

A package with nothing for that Python and platform is named in the same error. A pure-Python package that publishes only a source distribution fails this check too; run it again without `--only-binary` on a machine with that Python to tell the two apart.

## On Livops

- **The deploy stops as `install_failed`.** The build log shows pip's error, a **Tip:** line at its end points at the fix when it is a known case, and the old version keeps running.
- **A package needs a newer Python.** When the log says `Requires-Python >=3.12`, add a `.python-version` file at the project root. Livops runs Python 3.10 to 3.14, and also reads `runtime.txt`:

  ```text
  3.12
  ```

- **Import names and package names.** The docs list the common pairs: `PIL` is `Pillow`, `cv2` is `opencv-python-headless`, `yaml` is `PyYAML`, `dotenv` is `python-dotenv`, `telegram` is `python-telegram-bot`. See [Python could not find a module](https://livops.dev/en/docs/error-start#py-module).
- **Try it on your own machine.** If `pip install -r requirements.txt` fails for you too, with the same Python version, the error is in the requirements, not on our side.
- **The assistant explains.** Next to the failed build, the assistant's button reads the log and tells you what happened and how to fix it.
- **Start commands use the project's environment.** A start command you write yourself in **Settings → Start** begins with `.venv/bin/`, for example `.venv/bin/python main.py`.

A Python web app costs **39 credits a month**; a bot, worker or cron job **19**. If pip refuses to install at all on your own machine, see [error: externally-managed-environment](https://livops.dev/en/guides/error-pip-externally-managed-environment); the install errors are in [Install failed](https://livops.dev/en/docs/error-install), including [A package needs a newer Python](https://livops.dev/en/docs/error-install#python-312).

## Questions

**What does (from versions: none) mean?**

pip found no release of that name it could install with your Python, on your platform, from the indexes it searched. Either the name does not exist there, or every file was skipped as incompatible, or pip could not reach the index at all.

**Is the name case-sensitive, or does - versus _ matter?**

No. Package names are compared after normalizing: lowercased, with any run of dots, dashes and underscores treated as one dash. Flask_SQLAlchemy and flask-sqlalchemy are the same project, so that is never the cause.

**Why does it install on my laptop but fail on the server?**

The two run different Python versions or platforms, or use different indexes. A release that requires a newer Python, or that has wheels only for macOS or Windows, is skipped on the server. Compare python --version and pip config debug on both.

**How do I list the versions pip can see?**

Run pip index versions followed by the package name. It prints the versions available from the index, and accepts --python-version, --pre and --index-url to check another Python, pre-releases or a private index. Since pip 25.1 it no longer prints an experimental warning.

**Should I use --ignore-requires-python?**

Rarely. It makes pip install a release whose authors said it does not support your Python, and the failure may only move to import time or run time. Use a Python the package supports, or pin an older release that supports yours.

**Can I pip install the name I import?**

Only when the two names match. Pillow, for example, is imported as PIL. Package indexes enforce no link between the names, so installing whatever matches an import name can install an unintended or even malicious package. Look the project up first.

**Which Python versions does Livops run?**

Python 3.10 to 3.14. Put the version in a .python-version file at the project root, for example 3.12, when a package needs a newer Python.

## Sources

1. [pip source — src/pip/_internal/resolution/resolvelib/factory.py](https://raw.githubusercontent.com/pypa/pip/main/src/pip/_internal/resolution/resolvelib/factory.py). Checked 1 December 2026.
2. [pip source — src/pip/_internal/index/package_finder.py](https://raw.githubusercontent.com/pypa/pip/main/src/pip/_internal/index/package_finder.py). Checked 1 December 2026.
3. [pip docs — Changelog](https://pip.pypa.io/en/stable/news/). Checked 1 December 2026.
4. [pip docs — pip index](https://pip.pypa.io/en/stable/cli/pip_index/). Checked 1 December 2026.
5. [Python Packaging User Guide — Distribution package vs. import package](https://packaging.python.org/en/latest/discussions/distribution-package-vs-import-package/). Checked 1 December 2026.
6. [Python Packaging User Guide — Names and normalization](https://packaging.python.org/en/latest/specifications/name-normalization/). Checked 1 December 2026.
7. [Python Packaging User Guide — Core metadata specifications (Requires-Python)](https://packaging.python.org/en/latest/specifications/core-metadata/). Checked 1 December 2026.
8. [Python Packaging User Guide — Platform compatibility tags](https://packaging.python.org/en/latest/specifications/platform-compatibility-tags/). Checked 1 December 2026.
9. [pip docs — pip install](https://pip.pypa.io/en/stable/cli/pip_install/). Checked 1 December 2026.
10. [pip docs — pip download](https://pip.pypa.io/en/stable/cli/pip_download/). Checked 1 December 2026.
11. [pip docs — User Guide (Using a Proxy Server)](https://pip.pypa.io/en/stable/user_guide/). Checked 1 December 2026.
12. [pip docs — Authentication](https://pip.pypa.io/en/stable/topics/authentication/). Checked 1 December 2026.
13. [pip docs — Requirements File Format](https://pip.pypa.io/en/stable/reference/requirements-file-format/). Checked 1 December 2026.
14. [pip docs — Configuration](https://pip.pypa.io/en/stable/topics/configuration/). Checked 1 December 2026.
