一步解决CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate‘.

问题

报错如下:

Windows PowerShell
版权所有 (C) Microsoft Corporation。保留所有权利。

尝试新的跨平台 PowerShell https://aka.ms/pscore6

PS C:\Windows\system32> conda activate

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

解决 

换成cmd就行

一步解决CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate‘._第1张图片

我发现我报错是因为用的是Windows PowerShell。

一步解决CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate‘._第2张图片

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