|-转 Windows用Conda创建环境报错 CondaToSNonInteractiveError: Terms of Service have not been accepted for the following channels.
安装好Conda后第一执行创建虚拟环境的时候,要求你同意用这些channels创建虚拟环境。之后再创建就不会有这个提示
• https://repo.anaconda.com/pkgs/main
• https://repo.anaconda.com/pkgs/r
• https://repo.anaconda.com/pkgs/msys2
用Git bahs 执行命令
./setup_train_env.sh -e train_test
Administrator@WIN-20250812XET MINGW64 /d/ipynb_sh/sh/scripts/modules
$ ./setup_train_env.sh -e train_test
✅ 虚拟环境名称参数验证通过: train_test
✅ Git Bash 环境检测成功,使用完整功能
ℹ️ 🌍 检测到平台: local-windows
----------------------------------------
ℹ️ ✅ 日志重定向已生效
ℹ️ ✅ 日志文件已创建: D:/logs/setup_env_20250906_224944.log
ℹ️ 🔧 开始执行后续步骤...
----------------------------------------
\n=============================================
⚠️ [环境检测] 未找到 conda 虚拟环境: train_test,尝试创建...
===============================================\n
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...