conda "PackagesNotFoundError" - Fix Missing Packages & Channels
conda could not find a package in any channel it is configured to search. Usually the package lives on conda-forge (not defaults), the name differs from PyPI, or no build exists for your platform.
What this error means
conda install fails with PackagesNotFoundError, listing packages "not available from current channels" and suggesting you search Anaconda.org. The environment is not created or updated.
conda output
PackagesNotFoundError: The following packages are not available from current channels:
- ffmpeg-python
Current channels:
- https://repo.anaconda.com/pkgs/main/linux-64Common causes
Package lives on a channel you are not searching
Many packages are only on conda-forge, not the defaults channel. Without conda-forge configured, conda cannot see them.
Name or platform mismatch
The conda package name differs from the PyPI name, or there is no build for your OS/arch, so no candidate matches.
How to fix it
Add conda-forge and retry
Terminal
conda install -c conda-forge ffmpeg-python
# or make it default for the env
conda config --add channels conda-forge
conda config --set channel_priority strictSearch for the correct package
- Run
conda search -c conda-forge <name>to confirm the exact package and that a build exists for your platform. - If it is only on PyPI, install it with pip inside the conda env instead.
- Pin the environment in an
environment.ymlso channels are explicit.
How to prevent it
- Declare channels (including conda-forge) in
environment.yml. - Set
channel_priority strictto avoid surprising resolutions. - Use pip inside the env for packages that are PyPI-only.
Related guides
conda "ResolvePackageNotFound" - Fix environment.yml ResolutionFix conda "ResolvePackageNotFound" creating an env from environment.yml in CI - platform-specific pins or exa…
pyenv "version `X` is not installed" / "version not found" in CIFix pyenv "pyenv: version `3.12.2` is not installed" / "version not found" in CI - the version in .python-ver…
Poetry "HTTPError: 404 Client Error" Resolving a Package in CIFix Poetry "HTTPError: 404 Client Error: Not Found for url" in CI - a misconfigured source, a wrong package n…