miniconda 配置问题 ,未解之谜
miniconda 配置问题
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 - https://repo.anaconda.com/pkgs/msys2 To accept these channels' Terms of Service, run the following commands: conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/r conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/msys2 For information on safely removing channels from your conda configuration, please see the official documentation: https://www.anaconda.com/docs/tools/working-with-conda/channels
解决方案:
步骤 1:用 Conda 命令自动生成 .condarc
- 打开「Anaconda Prompt」(或系统「命令提示符」
cmd
,需确保conda
命令可执行)。 - 执行任意一条 Conda 配置命令(示例为开启 “显示频道 URL”,会自动生成
.condarc
):
# 接受 main 频道
conda tos accept --channel https://repo.anaconda.com/pkgs/main # 接受 r 频道
conda tos accept --channel https://repo.anaconda.com/pkgs/r # 接受 msys2 频道
conda tos accept --channel https://repo.anaconda.com/pkgs/msys2