Managing conda channels

less than 1 minute read

A big part of the power of conda over pip includes:

  • distributing per-platform optimized libraries
  • prioritized channels resolve version conflicts–thereby avoiding Python package dependency hell

Channel priority

Conda channel priority order is ordered by which channel appears first (highest) in ~/.condarc. You can just type in channel names or comment/delete them. The next conda install command will then redirect affected packages to the new priority order.

Per-environment channels

By definition, conda channels are the same across conda environments. To install packages from a third-party conda channel without bothering your other environments:

  1. temporarily add the channel(s) to ~/.condarc
  2. install the packages in the environment
  3. comment/delete the third-party channels

Tags:

Categories:

Updated:

Leave a Comment