[Python] VSCode only running python code one time then giving error

Discussão em 'Python' iniciado por Stack, Julho 5, 2025.

  1. Stack

    Stack Membro Participativo

    I'm running the latest VSCode on Windows 11 64-bit, and when I open VSCode and run any Python .py files, it completes properly the first time. But even if I don't make any changes to the code or environment, I get an error. This is a new thing that started within the last day. The error is in red and is:


    "C:\Program: The term 'C:\Program' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again."
    ​

    I haven't changed any settings - should I remove the app and reinstall it, or is there a simpler solution to this issue? It seems that the terminal is not auto placing quotes around the C:\Program Files\Python312\python.exe part when a second debugging PWSH terminal instance is run.

    Cheers

    Continue reading...

Compartilhe esta Página