当前位置:   article > 正文

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

commandnotfounderror: your shell has not been properly configured to use 'co

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

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

即可。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/article/detail/39321
推荐阅读
相关标签
  

闽ICP备14008679号