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
53

被折叠的 条评论
为什么被折叠?



