Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/visual-studio-code/3.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
Powershell 如何获取虚拟环境的名称以显示在VS代码终端中_Powershell_Visual Studio Code_Terminal_Virtual Environment_Anaconda3 - Fatal编程技术网

Powershell 如何获取虚拟环境的名称以显示在VS代码终端中

Powershell 如何获取虚拟环境的名称以显示在VS代码终端中,powershell,visual-studio-code,terminal,virtual-environment,anaconda3,Powershell,Visual Studio Code,Terminal,Virtual Environment,Anaconda3,当我在带有Powershell的集成终端中运行python代码时,虚拟环境的名称不会显示出来。一切正常,但并不表明它正在使用指定的Conda环境。请问如何修理这个? 我试过了 Set ExecutionPolicy-ExecutionPolicy RemoteSigned-Scope进程 但它不起作用。只需执行conda init

当我在带有Powershell的集成终端中运行python代码时,虚拟环境的名称不会显示出来。一切正常,但并不表明它正在使用指定的Conda环境。请问如何修理这个? 我试过了

Set ExecutionPolicy-ExecutionPolicy RemoteSigned-Scope进程


但它不起作用。

只需执行
conda init