问题描述:
使用管理员身份启动“命令提示符”后,想打开虚拟环境却显示:
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'
IMPORTANT: You may need to close and restart your shell after running 'conda init'
解决办法:
这种问题的出现说明我们现在这个虚拟环境被占用而打不开,在我Pychram终端中发现之前使用过但并没有退出的虚拟环境。退出后,这里再使用conda activate peixun
就可以打开了。