windows环境进入虚拟环境

进不去虚拟环境

一段时间没用突然cmd进不去虚拟环境了

指令1: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 <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’.

指令2:sourse activate 虚拟环境名❌

‘source’ 不是内部或外部命令,也不是可运行的程序或批处理文件。

解决指令:activate 虚拟环境名 ✔


版权声明:本文为qq_43241756原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。