ubuntu 使用pycharm+miniconda报错CondaToSNonInteractiveError

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

原因是:

没有同意conda的服务条款。

我们这样启用pycharm就正常用conda提供的python环境了:

#!/usr/bin/bash
# 设置环境
set CONDA=/home/test/miniconda3/bin/conda
export CONDA_TERMS_ACCEPTED=yes
export CONDA_PLUGINS_AUTO_ACCEPT_TOS=true
# 接受条款
$CONDA tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main
$CONDA tos accept --override-channels --channel https://repo.anaconda.com/pkgs/r
# 运行pycharm,虚拟环境选择conda
/home/test/software/pycharm-2026.2/bin/pycharm


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值