Environment data
- VS Code version: 1.56.2
- Extension version (available under the Extensions sidebar): XXX
- OS and version: v2021.5.842923320
- Python version (& distribution if applicable, e.g. Anaconda): 3.9.5, standard installation
- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv and global installation
- Value of the
python.languageServer setting: Pylance
- OS: Windows 10 1809 Build 17763.1935
Expected behaviour
The extension should correctly detect the installed python version without errors.
Actual behaviour
Extension fails to detect Python and throws an error in the output.

Steps to reproduce:
- Install python extension, open a python file.
Logs
Python extension output
Error 2021-06-04 16:23:57: Failed to get interpreter information for 'C:\Program Files\Python39\python.exe' [Error: Command failed: "C:\\Program Files\Python39\python.exe" "c:\Users\mlodozk\.vscode\extensions\ms-python.python-2021.5.842923320\pythonFiles\pyvsc-run-isolated.py" "c:\Users\mlodozk\.vscode\extensions\ms-python.python-2021.5.842923320\pythonFiles\interpreterInfo.py"
�[91mParserError:
�[96mLine |
�[96m 1 | �[0m … python.exe" �[96m"c:\Users\mlodozk\.vscode\extensions\ms-python.python-202�[0m …
�[96m | �[91m ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[91m�[96m | �[91mUnexpected token
�[96m | �[91m'"c:\Users\mlodozk\.vscode\extensions\ms-python.python-2021.5.842923320\pythonFiles\pyvsc-run-isolated.py"' in expression or statement.
�[0m
at ChildProcess.exithandler (child_process.js:317:12)
at ChildProcess.emit (events.js:315:20)
at maybeClose (internal/child_process.js:1048:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)] {
killed: false,
code: 1,
signal: null,
cmd: '"C:\\\\Program Files\\Python39\\python.exe" "c:\\Users\\mlodozk\\.vscode\\extensions\\ms-python.python-2021.5.842923320\\pythonFiles\\pyvsc-run-isolated.py" "c:\\Users\\mlodozk\\.vscode\\extensions\\ms-python.python-2021.5.842923320\\pythonFiles\\interpreterInfo.py"'
}
Environment data
python.languageServersetting: PylanceExpected behaviour
The extension should correctly detect the installed python version without errors.
Actual behaviour
Extension fails to detect Python and throws an error in the output.

Steps to reproduce:
Logs
Python extension output