I want to add the conda channel to a specific conda environment , but when I use
conda config --add channels glotzer
this channel is now accessible from all my surroundings. In addition to testing the installation from another environment, the file ~/.condarchas the following:
channels:
- glotzer
- defaults
How to configure the cond so that the channel is accessible only from a certain environment?
I found in the channel documentation , which for conda> = 4.1.0, placing the channels at the bottom ~/.condarcwill prevent the addition of additional channels from the base package.
By default, conda now prefers packets from a higher priority channel over any version from a lower priority channel. Therefore, now you can safely place channels at the bottom of the channel list to provide additional packages that are not in the default, and still be sure that these channels will not override the set of basic packages.
I expect this to prevent most problems, unless in one environment you want a package added through a channel to overlap the main package.
source
share