当前位置:首页 » 《关注互联网》 » 正文

服务器报错解决:CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate‘.T

11 人参与  2024年04月16日 13:39  分类 : 《关注互联网》  评论

点击全文阅读


       在一个新的服务器端口创建完虚拟环境后,显示报错信息

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'. To initialize your shell, run $ conda init <SHELL_NAME> Currently supported shells are: - bash - fish - tcsh - xonsh - zsh - powershell See 'conda init --help' for more information and options. IMPORTANT: You may need to close and restart your shell after running 'conda init'.

这个错误表明你的 shell(命令行终端)没有被正确配置以使用 conda activate 命令。要解决这个问题,你需要运行 conda init 命令,并提供你当前使用的 shell 的名称。

在你的情况下,提示中提到支持的 shell 有 bash、fish、tcsh、xonsh、zsh、powershell。因此,你可以运行以下命令:

conda init bash

运行完这句代码后,重新启动你的shell,问题解决。

然后输入:

conda activate XXXX

即可。


点击全文阅读


本文链接:http://zhangshiyu.com/post/96025.html

<< 上一篇 下一篇 >>

  • 评论(0)
  • 赞助本站

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

关于我们 | 我要投稿 | 免责申明

Copyright © 2020-2022 ZhangShiYu.com Rights Reserved.豫ICP备2022013469号-1