Anaconda提示虚拟环境“python无法识别…”

2024-04-25 01:32:52 发布

您现在位置:Python中文网/ 问答频道 /正文

我在Anaconda Prompt中创建并激活了一个虚拟环境:

conda create --name test
activate test

当我尝试在此虚拟环境中运行Python时,出现以下错误:

'python' is not recognized as an internal or external comand, operable program or batch file.

现在,我知道我的PATH系统变量中缺少Python,但为什么它在使用Anaconda提示符时在虚拟环境之外工作呢?你知道吗

除了手动将Python添加到PATH变量之外,还有更好的方法解决这个问题(使Python在Anaconda虚拟环境中工作)吗?你知道吗


Tags: orpathnametestisas错误create