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.
By Livops team, the people who build and run LivopsUpdated
pip prints two lines when it cannot find anything to install[1][2]:
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]:
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 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].
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:
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.
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]:
--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]:
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]:
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-versionfile at the project root. Livops runs Python 3.10 to 3.14, and also readsruntime.txt:3.12 -
Import names and package names. The docs list the common pairs:
PILisPillow,cv2isopencv-python-headless,yamlisPyYAML,dotenvispython-dotenv,telegramispython-telegram-bot. See Python could not find a module. -
Try it on your own machine. If
pip install -r requirements.txtfails 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; the install errors are in Install failed, including A package needs a newer Python.
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
- pip source — src/pip/_internal/resolution/resolvelib/factory.py (raw.githubusercontent.com). Checked .
- pip source — src/pip/_internal/index/package_finder.py (raw.githubusercontent.com). Checked .
- pip docs — Changelog (pip.pypa.io). Checked .
- pip docs — pip index (pip.pypa.io). Checked .
- Python Packaging User Guide — Distribution package vs. import package (packaging.python.org). Checked .
- Python Packaging User Guide — Names and normalization (packaging.python.org). Checked .
- Python Packaging User Guide — Core metadata specifications (Requires-Python) (packaging.python.org). Checked .
- Python Packaging User Guide — Platform compatibility tags (packaging.python.org). Checked .
- pip docs — pip install (pip.pypa.io). Checked .
- pip docs — pip download (pip.pypa.io). Checked .
- pip docs — User Guide (Using a Proxy Server) (pip.pypa.io). Checked .
- pip docs — Authentication (pip.pypa.io). Checked .
- pip docs — Requirements File Format (pip.pypa.io). Checked .
- pip docs — Configuration (pip.pypa.io). Checked .
Put your project online today
Connect GitHub or drop a folder. No card is asked for.
Deploy your Python appRelated
- error: externally-managed-environment (pip): how to fix iterror: externally-managed-environment means pip found an EXTERNALLY-MANAGED marker in the Python it was about to install into: that Python belongs to your operating system's or Homebrew's package manager (PEP 668), and pip will not change it outside a virtual environment. Install into a virtual environment instead (python3 -m venv .venv), use pipx for command-line tools, or build on the official python Docker image; --break-system-packages is the last resort.
- pip: Failed building wheel / failed-wheel-build-for-install — how to fix itpip found no ready-made wheel for a package on your Python version and platform, tried to compile one from source, and the compiler step failed. The fix is almost never to install a compiler: move to a version of the package that ships a wheel for your Python, switch to its binary variant (psycopg[binary], psycopg2-binary), or pin the Python version the package supports.
- ModuleNotFoundError: No module named — after a deployPython searched sys.path and could not find the module you import. After a deploy that almost always means the package is not in requirements.txt, is listed under a different name than the one you import, or the start command runs a Python that the packages were not installed into.
- Error: pg_config executable not found (psycopg2): how to fix itError: pg_config executable not found, followed by Failed building wheel for psycopg2, means pip is compiling psycopg2 from source and the machine has no PostgreSQL client headers or pg_config. Switch to a package that needs no compiling, psycopg2-binary or psycopg[binary] for Psycopg 3, or install libpq-dev and a C compiler where the build runs.
- How to run a Python script 24/7 (and keep it running)A script started in a terminal stops when the terminal closes, the SSH connection drops or the laptop sleeps. To keep it running you need something that starts it again: a systemd service with Restart=always, Docker with a restart policy, or a platform's background worker. On Livops it runs as a worker for 19 credits a month (19,000 so'm).
- Django hosting in 2026: how to deploy a Django app, and whereFor most Django apps, a platform that deploys from Git is the right pick: Render and DigitalOcean App Platform are the simplest fixed monthly prices, Fly.io is the cheapest in dollars, Railway bills by usage, and a VPS is for when you want root. Livops fits Django apps whose users are in Uzbekistan, at 39 credits a month. Below: prices and free tiers side by side, a Django deployment checklist, and how to host a Django project on Livops.
- Flask hosting in 2026: how to deploy a Flask app, and whereA Flask app in production runs on a WSGI server such as Gunicorn, never on flask run, and is told it sits behind a proxy. On Livops a repository with app.py and requirements.txt that lists gunicorn starts on Gunicorn from a push, for 39 credits a month (39,000 so'm). Here is how Render, Railway, Fly.io and a VPS compare.