admin管理员组

文章数量:1602084


问题描述

Windows系统使用pycharm无法激活已经创建的conda虚拟环境,报错如下:

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

解决方案:

1、打开power shell

2、右键以管理员身份运行,输入指令进行策略更改:

set-ExecutionPolicy RemoteSigned

 输入“Y”

3、在pycharm中重启Terminal即可正常激活虚拟环境

source activate EnvName

本文标签: 报错环境系统WindowsConda