vscode 中使用anaconda激活python环境提示:
CommandNotFoundError: Your shell has not been properly configured to use 'conda deactivate'.
原因是上次激活环境后,直接关闭了终端,没有使用conda deactivate
操作方式:
op1691@CNSHHW1026 MINGW64 /e/VScode_Flies/mlearning365
$ source activate
(base)
op1691@CNSHHW1026 MINGW64 /e/VScode_Flies/mlearning365
$ conda deactivate
op1691@CNSHHW1026 MINGW64 /e/VScode_Flies/mlearning365
$ conda activate base
(base)
成功进入环境