Skip to content
Latchkey

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-64

Common 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 strict

Search for the correct package

  1. Run conda search -c conda-forge <name> to confirm the exact package and that a build exists for your platform.
  2. If it is only on PyPI, install it with pip inside the conda env instead.
  3. Pin the environment in an environment.yml so channels are explicit.

How to prevent it

  • Declare channels (including conda-forge) in environment.yml.
  • Set channel_priority strict to avoid surprising resolutions.
  • Use pip inside the env for packages that are PyPI-only.

Related guides

Tired of flaky CI? Latchkey auto-heals failed jobs and retries them for you. Start free →