PowerShell does not support automatic activation of conda virtual environment
See original GitHub issueIt 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
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (4 by maintainers)
Top Results From Across the Web
Conda environment is not activated in Powershell on ...
Start new project in PyCharm with a new Conda environment. Make sure "Activate virtualenv" is enabled in the Terminal settings.
Read more >Automatically activate conda evironment in Powershell for ...
This shell to conda integration is done by the vscode python integration. Github source. The problem. But there is one problem. I don't...
Read more >How to activate conda environment from powershell?
Open Powershell and browse to condabin folder in your conda installation directory, for example: C:\Users\<username>\anaconda3\condabin · Run ./ ...
Read more >Windows error: "activate.ps1 cannot be loaded because ...
Option 3 - Disable automatic activation of Python environments. If you want to use PowerShell in VS Code, but don't want to relax...
Read more >Virtual Environments
RStudio will automatically activate any venv or condaenv that it finds within a project directory. Just be sure to create an RStudio project...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For those having issues getting PowerShell to drop into a conda environment correctly, the following settings work by calling the proper conda scripts when PowerShell launches. You will need to modify the paths to point to your
condabin
folder.@alexzshl Our recommendation for now is to activate conda first and then start code using
code .
in your workspace/project folder. https://github.com/microsoft/vscode-python/issues/10626