You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When setting python.condaPath to the conda executable, e.g. C:/Programs/anaconda/Scripts/conda.exe, the activate command should be used with this executable if a python file is run.
Actual behaviour
conda command is run instead. Since conda is not in my PATH, I get an error that the command is not recognized.
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
PS C:\Path\Stuff> conda activate test
conda : The term 'conda' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
Set up Anaconda environment
Make sure VS Code recognized environment (Python 3.xxx ('name': conda) in status bar)
Make sure python.terminal.activateEnvironment is True
Run a python file
Logs
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
XXX
Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)
Environment data
"python.jediEnabled"set to; more info How to update the language server to the latest stable version #3977): JediExpected behaviour
When setting
python.condaPathto the conda executable, e.g.C:/Programs/anaconda/Scripts/conda.exe, the activate command should be used with this executable if a python file is run.Actual behaviour
condacommand is run instead. Sincecondais not in my PATH, I get an error that the command is not recognized.Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
python.terminal.activateEnvironmentis TrueLogs
Output for
Pythonin theOutputpanel (View→Output, change the drop-down the upper-right of theOutputpanel toPython)Output from
Consoleunder theDeveloper Toolspanel (toggle Developer Tools on underHelp; turn on source maps to make any tracebacks be useful by runningEnable source map support for extension debugging)