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

相关推荐
javajenius10 小时前
Pixi:用 Rust 重写 Conda 体验的包管理工具
开发语言·其他·rust·conda
小白弄潮儿1 天前
Conda 使用入门指南
conda
DFT计算杂谈1 天前
WannierTools输入文件wt.in一键批量生成脚本
java·前端·chrome·python·算法·conda
weixin_468466851 天前
网络数据采集新手入门指南
python·网络爬虫·conda·编程
小白弄潮儿1 天前
Conda 使用入门指南(续):解决 pip 安装问题与最佳实践
conda·pip
papership1 天前
【Conda 简介】
conda
CV-deeplearning2 天前
还在用 Anaconda?Miniforge:conda-forge 官方极简安装器,内置 Mamba,6 大架构全覆盖,5 分钟从零搭建 Python 环境
conda·miniforge·包管理器·conda-forge·python环境管理
一碗白开水一3 天前
【训练技巧】bash: conda: command not found:conda 没有适配环境
开发语言·conda·bash
buxiangshui_cd4 天前
Conda命令
开发语言·python·conda
DogDaoDao5 天前
【第 04 篇】列表与元组 —— 序列类型核心详解
人工智能·python·深度学习·神经网络·机器学习·conda·numpy