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

相关推荐
砍材农夫17 天前
python环境|conda安装和使用(1)
开发语言·后端·python·conda
匆匆整棹还17 天前
mamba的安装和版本对应
conda
2601_9618752418 天前
花生十三资料1200题|题库|刷题
conda·pytest·pillow·pip·web3.py·ipython·gunicorn
没有钱的钱仔18 天前
自动创建conda虚拟环境,并安装依赖包
conda
砍材农夫20 天前
python环境|pip|uv|venv|Conda区别
后端·python·conda·pip·uv
pixelpilot120 天前
Conda:跨平台的二进制包管理器
其他·conda
lg_cool_21 天前
使用conda管理python运行环境并关联vscode
vscode·python·conda
javajenius21 天前
Pixi:用 Rust 重写 Conda 体验的包管理工具
开发语言·其他·rust·conda
小白弄潮儿21 天前
Conda 使用入门指南
conda
DFT计算杂谈21 天前
WannierTools输入文件wt.in一键批量生成脚本
java·前端·chrome·python·算法·conda