CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate‘解决方法

创建与2022.9.28

1、问题描述:miniconda创建了mtmct虚拟环境,pycharm中打开相应的project并且pycharm中配置相应解释器与虚拟环境。进入terminal发现:

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
If using 'conda activate' from a batch script, change your
invocation to 'CALL conda.bat activate'.

To initialize your shell, run

    $ conda init

Currently supported shells are:
  - bash
  - cmd.exe
  - 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'.

查看解答conda init bash\cmd.exe没用

2、解决方法:

修改环境变量----->D:\ProgramData\Anaconda3\Scripts (必须删除,不能保留,否则报错)
改成 D:\ProgramData\Anaconda3\condabin

重启pycharm,解决。

你可能感兴趣的:(conda,pycharm,python)