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

相关推荐
烟锁池塘柳04 天前
Conda 创建环境报错:Unable to read repodata JSON file,清华源 pkgs/free 失效解决方法
json·conda
veminhe4 天前
conda使用
python·conda
方与圆之帆9 天前
conda 管理不同版本的软件包
conda·gdal·osm
数智工坊10 天前
Conda 环境 Docker 标准化迁移完整方案,适配深度学习 GPU 训练
深度学习·docker·conda
软糖姐姐12 天前
Python开篇——简介、pip和conda
python·conda·pip·数据科学·
puamac13 天前
Conda + CUDA 环境安装与使用完全指南
conda
叶 落13 天前
Mac 通过 Miniconda 安装 Python
python·macos·conda·miniconda
冰心孤城14 天前
Conda、Anaconda、Miniconda对比分析
conda
不明觉厉二十年14 天前
uv Windows配置
conda·pip
心念枕惊15 天前
Conda 环境一键搬家:用 conda-pack 打包带走,连网都不用
conda·neo4j