解决:VSCode Win10 激活conda环境时报错 CommandNotFoundError

错误如下:

$ conda activate data_science
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 <SHELL_NAME>

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'.

解决方法:
Ctrl+Shift+P打开命令面板,搜索terminal select default profile
解决:VSCode Win10 激活conda环境时报错 CommandNotFoundError_第1张图片
选择cmd.exe,ok问题解决了
解决:VSCode Win10 激活conda环境时报错 CommandNotFoundError_第2张图片

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