Skip to content

PowerShell does not support automatic activation of conda virtual environment #11638

@alexzshl

Description

@alexzshl

It seems that the powershell terminal does not support automatic activation of the conda virtual environment?I am not sure if this is my problem or it is currently the case.

If we need a way to activate the conda virtual environment from the powershell terminal, I hope the following information can provide some help

Anaconda supports powershell terminal.The following is an example of the startup command provided by Anaconda:

%windir%\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy ByPass -NoExit -Command "& 'F:\ProgramData\Anaconda3\shell\condabin\conda-hook.ps1' ; conda activate 'F:\ProgramData\Anaconda3' "

According to the above information, I activated the conda virtual environment in the powershell terminal of VSCode

image

Metadata

Metadata

Assignees

Labels

area-environmentsFeatures relating to handling interpreter environmentsbugIssue identified by VS Code Team member as probable bugneeds proposalNeed to make some design decisions

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions