conda安装环境问题

问题描述

bash 复制代码
(base) root@/ai/stor# conda create -n llm_env python 3.10 -y

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 these channels' Terms of Service, run the following commands:
    conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main
    conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/r

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

问题分析

这个错误是因为使用的 Miniconda 版本(或其默认配置的 Anaconda 频道)要求用户显式接受其 服务条款(Terms of Service, ToS) 才能下载包。

解决方法

bash 复制代码
conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main
conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/r

执行完毕后,再次运行conda create -n llm_env python 3.10 -y即可

相关推荐
曲幽8 小时前
Python包管理告别龟速下载:uv工具国内镜像与离线安装实战
python·conda·pip·uv·venv·uvx
weisian15110 小时前
入门篇--2-Windows上如何用Conda松管理多个Python版本?
windows·python·conda
Tipriest_2 天前
conda使用详细指南
conda
Genevieve_xiao2 天前
【conda】解决每次打开powershell报错无法加载文件(自启动conda脚本)的问题
conda
F_D_Z3 天前
anaconda search&anaconda show | conda 检索包资源安装指定版本包指定源安装命令package
conda
勇往直前plus3 天前
PyCharm 找不到包?Anaconda base 环境 pip 装到用户目录的排查与修复
ide·python·pycharm·conda·pip
liwulin05064 天前
【PYTHON】python venv创建虚拟环境,非conda
开发语言·python·conda
这个人懒得名字都没写6 天前
Python包管理新纪元:uv
python·conda·pip·uv
zgj_online6 天前
vscode的zsh终端,conda切换node环境不成功的解决方案
ide·vscode·conda