'Mac OS Mojave - Location of system .condarc file

I recently installed miniconda3 and am trying to locate the system .condarc file. I am troubleshooting a problem where the default miniconda3 installation has setup 2 channels for envs_dirs. I tried to remove one of the channels by running the following command:

conda config --system --remove envs_dirs '/usr/local/Caskroom/miniconda/4.6.14/miniconda3/envs'

However, I get this error:

CondaKeyError: 'envs_dirs': key 'envs_dirs' is not in the config file

Running the below command shows the envs_dirs with both channels:

conda config --show

If I can at least locate the default system .condarc file that the Conda documentation mentions, I can possibly modify the file direct to remove it. Where should I be able to find this file?



Solution 1:[1]

This might be a shot in the dark, but try conda info?

While this alluded to a "user config file" at /Users/username/.condarc that did not exist, it also showed me a "populated config files" at /opt/homebrew/Caskroom/miniforge/base/.condarc which did exist and corresponded to the results from conda config --show channels as well.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1