executable: C:\Users\karraj\OneDrive - Microsoft\Desktop\folders\crap\.venv\Scripts\python.exe
sys.path: ['', 'C:\\Users\\karraj\\OneDrive - Microsoft\\Desktop\\folders\\crap\\hellozsas', 'c:\\Users\\karraj\\OneDrive - Microsoft\\Desktop\\folders\\crap\\.conda\\python38.zip', 'c:\\Users\\karraj\\OneDrive - Microsoft\\Desktop\\folders\\crap\\.conda\\DLLs', 'c:\\Users\\karraj\\OneDrive - Microsoft\\Desktop\\folders\\crap\\.conda\\lib', 'c:\\Users\\karraj\\OneDrive - Microsoft\\Desktop\\folders\\crap\\.conda', 'C:\\Users\\karraj\\OneDrive - Microsoft\\Desktop\\folders\\crap\\.venv', 'C:\\Users\\karraj\\OneDrive - Microsoft\\Desktop\\folders\\crap\\.venv\\lib\\site-packages']
PATH: C:\Users\karraj\OneDrive - Microsoft\Desktop\folders\crap\.venv\Scripts;C:\Program Files\Common Files\Microsoft Shared\Microsoft Online Services;C:\Program Files (x86)\Common Files\Microsoft Shared\Microsoft Online Services;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Git\cmd;C:\Users\karraj\AppData\Roaming\nvm;C:\Program Files\nodejs;C:\Program Files\Git LFS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\Docker\Docker\resources\bin;C:\Users\karraj\AppData\Local\Programs\Python\Python37\Scripts\;C:\Users\karraj\AppData\Local\Programs\Python\Python37\;C:\Users\karraj\AppData\Local\Programs\Python\Python39\Scripts\;C:\Users\karraj\AppData\Local\Programs\Python\Python39\;C:\Users\karraj\AppData\Local\Programs\Python\Python36\Scripts\;C:\Users\karraj\AppData\Local\Programs\Python\Python36\;C:\Users\karraj\.pyenv\pyenv-win\bin;C:\Users\karraj\.pyenv\pyenv-win\shims;C:\Program Files\Common Files\Microsoft Shared\Microsoft Online Services;C:\Program Files (x86)\Common Files\Microsoft Shared\Microsoft Online Services;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\OpenSSH;C:\Program Files\Git\cmd;C:\Users\karraj\AppData\Roaming\nvm;C:\Program Files\nodejs;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Users\karraj\AppData\Local\Programs\Python\Python38\Scripts\;C:\Users\karraj\AppData\Roaming\Python\Python38\Scripts;C:\Users\karraj\AppData\Local\Programs\Python\Python38\;C:\Users\karraj\Miniconda3;C:\Users\karraj\Miniconda3\Library\mingw-w64\bin;C:\Users\karraj\Miniconda3\Library\usr\bin;C:\Users\karraj\Miniconda3\Library\bin;C:\Users\karraj\Miniconda3\Scripts;C:\Users\karraj\AppData\Local\Microsoft\WindowsApps;C:\Users\karraj\AppData\Local\Programs\Microsoft VS Code Insiders\bin;c:\Users\karraj\AppData\Roaming\Code - Insiders\User\globalStorage\ms-vscode-remote.remote-containers\cli-bin;C:\Users\karraj\AppData\Local\Microsoft\WindowsApps;C:\Users\karraj\AppData\Local\Programs\Microsoft VS Code\bin;;C:\Users\karraj\.vscode-server-launcher\bin;C:\Program Files\JetBrains\PyCharm Community Edition 2022.3.2\bin;
Refs: #11039
Complexity: 5
Create Issue
Requirements
PATHduring installation.conda initto initialize the shell if need be.conda create -n testmarch python -y.python -m venv <name>to create virtual envs.Verification
Reload window and activate Python extension by opening a Python file.
Select a virtual or conda environment using
Python: Select Interpretercommand.Open terminal, no activation commands should be sent.
Make sure terminal is activated using the selected environment. You can run the following script using
python <script>in terminal to verify:Output should look something similar to this for `.venv` created via `python -m venv .venv`, make sure `PATH` begins with the activated environment, and `sys.path` has the appropriate directories as well.
The prompt should be visible in most cases (create an issue if it points to the incorrect env):
If nothing is visible, please add a comment here with the type of shell, OS and the Python logs: Prompt does not show up for terminal activation #20827.
Try changing interpreters, terminals should be re-activated with the new env. If a used terminal is currently open, a warning sign should appear to the right of terminal:

Try changing shells using
Select default profilecommand, verify terminals are re-activated.Lastly, verify debugging when using
"python"option works.launch.json:${command:python.interpreterPath}with path to an interpreter. This is similar tosys.executableprinted earlier, for eg.C:\Users\karraj\OneDrive - Microsoft\Desktop\folders\crap\.venv\Scripts\python.exe. Call itA.Python: Select Interpreterthat is different from the"python"specified earlier, call itB.A, and notB.