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

相关推荐
Uncertainty!!1 天前
docker打包本地conda虚拟环境并远程部署
docker·容器·conda
kishu_iOS&AI2 天前
Conda 简要说明与常用指令
python·安全·conda
呆呆小孩2 天前
Anaconda 被误删抢救手册:从绝望到重生
python·conda
大连好光景2 天前
conda管理包还是pip管理包
python·conda·pip
ricky_fan3 天前
(OpenAI)Codex 安装、部署使用方式
python·macos·conda·vim
Hello.Reader4 天前
PySpark 安装保姆级教程pip、Conda、手动安装、Spark Connect 一次讲透(一)
python·spark·conda·pip
Python大数据分析@4 天前
Python包管理器 uv是否替代conda?
python·conda·uv
万里沧海寄云帆4 天前
一步修复Win11下conda无法激活问题
linux·python·conda
波特率1152005 天前
miniconda入门使用
python·conda·miniconda·python环境
好好学习叭~5 天前
将conda环境打包为docker镜像
docker·容器·conda