Skip to content

can't start python interpreter on visual studio 2022 community #8309

@tiencotvan

Description

@tiencotvan

Run a simple python application print("Hello World" ) on VS 2022 community and got:

Failed to launch debug adapter. Additional information may be available in the output window.
Access is denied.

In the Python environments window when I click on
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.13_3.13.2544.0_x64__qbz5n2kfra8p0\python3.13.exe

I got:
Window Title]
devenv.exe

[Main Instruction]
An unexpected error occurred

[Content]
An error occurred starting this interpreter.

Please press Ctrl+C to copy the contents of this dialog and report this error to our issue tracker.

[V] Show details [Close]

[Expanded Information]

Build: 17.0.25079.8

System.ComponentModel.Win32Exception (0x80004005): Access is denied
   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
   at Microsoft.PythonTools.InterpreterList.InterpreterListToolWindow.StartInterpreter_Executed(Object sender, ExecutedRoutedEventArgs e)

In the Python 3.13 interactive window [PTVS 17.0.25079.8-17.0]
Type $help for a list of commands.

Failed to start interactive process:
System.ComponentModel.Win32Exception (0x80004005): Access is denied
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at Microsoft.PythonTools.Repl.PythonInteractiveEvaluator.d__43.MoveNext()

Current interactive window is disconnected.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions