Issue
New Conda TOS breaking automated scripts
CondaToSNonInteractiveError: Terms of Service have not been accepted for the following channels. Please accept or remove them before proceeding: โข https://repo.anaconda.com/pkgs/main โข https://repo.anaconda.com/pkgs/r To accept a channel's Terms of Service, run the following and replace `CHANNEL` with the channel name/URL: โฃ conda tos accept --override-channels --channel CHANNEL To remove channels with rejected Terms of Service, run the following and replace `CHANNEL` with the channel name/URL: โฃ conda config --remove channels CHANNEL
Solution
Set ENV like:
CONDA_PLUGINS_AUTO_ACCEPT_TOS=1 CONDA_PLUGINS_AUTO_ACCEPT_TOS=yes
Reference
Anaconda new ToS causing CI failures
ย