首页 > 解决方案 > anaconda 没有激活虚拟环境

问题描述

每当我conda activate "C:\Users\user\anaconda3\envs\Conda3.9.5"在 Visual Studio 代码中运行时,我都会收到此错误:

conda : The term 'conda' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if 
a path was included, verify that the path is correct and try again.
At line:1 char:1
+ conda activate "C:\Users\user\anaconda3\envs\Conda3.9.5"
+ ~~~~~
    + CategoryInfo          : ObjectNotFound: (conda:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

当我在 pycharm 中使用 conda 时,它工作正常,没有错误

蟒蛇版本:3.9.5

操作系统:Windows 10

标签: python-3.xanacondavirtual-environment

解决方案


推荐阅读