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

相关推荐
赶紧写完去睡觉3 天前
Anaconda 创建虚拟环境与使用
python·pycharm·conda
迷途呀5 天前
conda使用指南
python·深度学习·机器学习·pycharm·conda
怪兽学LLM7 天前
Conda 环境依赖导出指南:四种常用方法总结
conda
QH_ShareHub8 天前
GPU 完整运行过程:驱动、CUDA Toolkit、Conda、Python PyTorch 与 R torch
pytorch·python·conda
liang899911 天前
Anconda常用命令
linux·人工智能·conda
齐昭王城12 天前
Conda 环境一键搬家:用 conda-pack 打包带走,连网都不用
conda
HAPPY酷16 天前
【ROS2】 Conda 环境搭建(命令行版)
linux·运维·python·ubuntu·机器人·conda
Dxy123931021617 天前
如何使用Conda国内源安装虚拟环境(保姆级全平台教程)
conda
码上暴富17 天前
Conda从入门到精通的环境管理实战
conda
xin_yao_xin17 天前
Conda 环境的 CUDA PATH 配置指南
开发语言·python·conda·cuda