Managing conda channels

Advantages of conda over pip include:

  • 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