Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/63.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Anaconda Prompt虚拟环境&x27;python无法识别…';_Python_Anaconda_Virtualenv - Fatal编程技术网

Anaconda Prompt虚拟环境&x27;python无法识别…';

Anaconda Prompt虚拟环境&x27;python无法识别…';,python,anaconda,virtualenv,Python,Anaconda,Virtualenv,我在Anaconda提示符中创建并激活了一个虚拟环境: conda create --name test activate test 当我尝试在此虚拟环境中运行Python时,会出现以下错误: “python”不被识别为内部或外部命令、可操作程序或批处理文件 现在,我知道我的PATH系统变量中缺少Python,但为什么它在使用Anaconda提示符时在虚拟环境之外工作呢 除了手动将Python添加到PATH变量之外,还有更好的方法来解决这个问题(使Python在Anaconda虚拟环境中工作)

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

conda create --name test
activate test
当我尝试在此虚拟环境中运行Python时,会出现以下错误:

“python”不被识别为内部或外部命令、可操作程序或批处理文件

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


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

定义要在您的环境中使用的Python
conda create-n test Python=3.7
。自由添加答案,以便我可以标记为已解决。