conda deactivate报错CommandNotFoundError: Your shell has not been properly configured to use ‘conda de

在Ubuntu上安装Anaconda后,遇到无法激活环境的问题,错误提示是由于shell未正确配置使用condadeactivate。解决方案包括使用sourceactivate来激活环境,以及sourcedeactivate退出环境,同时建议运行condainit初始化shell,特别是可能需要关闭并重启shell以应用更改。
摘要由CSDN通过智能技术生成

1、问题:

当我们在ubuntu里面安装anconda以后,但是不能激活环境,conda deactivate激活不了当前的环境,报错如下:
在这里插入图片描述

CommandNotFoundError: Your shell has not been properly configured to use 'conda deactivate'.
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'.

2、解决办法:

(1)激活 anaconda 环境

source activate

(2)退出 anaconda 环境

source deactivate
参考:链接

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值