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即可

相关推荐
itwangyang52011 小时前
Windows + Conda + OpenMM GPU(CUDA)完整安装教程-50显卡系列
人工智能·windows·python·conda
小杜今天学AI了吗11 小时前
如何配置 linux 系统的conda 环境
linux·运维·conda
gravity_w1 天前
Conda常用命令总结
经验分享·笔记·conda
雪风飞舞2 天前
conda 常用命令
linux·windows·conda
惊讶的猫2 天前
vscode+conda
ide·vscode·conda
arthur.dy.lee2 天前
在pycharm中使用powershell7解决conda,ohmyposh报错的问题
ide·pycharm·conda
num_killer2 天前
小白的uv包管理工具使用
python·conda·pip·uv
NiceZack3 天前
pip与conda换国内源
conda·pip
love530love3 天前
EPGF 新手教程 11在 PyCharm(中文版 GUI)中创建 uv 环境,并把 uv 做到“项目自包含”(工具本地化为必做环节)
ide·人工智能·python·pycharm·conda·uv·epgf
彼岸花苏陌5 天前
conda安装gpu版本的pytorch
人工智能·pytorch·conda