解决报错CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate’。
•
Python
报错内容:
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’。
解决方法:
1、打开CMD,先输入activate,回车。
2、然后再conda activate xxx ,回车 。
本文来自网络,不代表协通编程立场,如若转载,请注明出处:https://net2asp.com/734bcc6010.html
