About 781,000 results
Open links in new tab
  1. How to run a Python file in Visual Studio code from the terminal?

    Nov 28, 2022 · But, when I try to run that code from the terminal writing "name_of_the_file.py", I find this error: "The term "name_of_the_file.py" is not recognized as the name of a cmdlet, function, script file, …

  2. Visual Studio Code not running Python - Stack Overflow

    If you have installed Python from an executable file and not from the Windows Store, you can change your terminal setting from internal to external and make cmd as the default terminal in Visual Studio …

  3. Visual Studio Code is not showing the output of Python

    Mar 28, 2018 · Simplest Answer: Run the file directly in a terminal Open a terminal in VS Code (View/Terminal in menu or Ctrl-`, which is the "Ctrl" key and the "Grave" or "Tick-mark" key, normally …

  4. How to run a python program in the background even after closing the ...

    Dec 28, 2013 · 112 Use the shebang line in your python script. Make it executable using the command, chmod +x test.py Use no hangup to run the program in the background even if you close your …

  5. What is the difference between "Run Python File" vs "Run Python File in ...

    Mar 29, 2025 · Run Python File What it does: Executes your Python script in the VS Code Output panel (a separate area that displays program output) Run Python File in Terminal Executes the Python …

  6. macos - How to run Python script on terminal? - Stack Overflow

    Jan 31, 2014 · I want to run a Python script in Terminal, but I don't know how? I already have a saved file called gameover.py in the directory "/User/luca/Documents/python".

  7. VS Code can't find Python - Stack Overflow

    Feb 1, 2021 · Visual Studio Code was open in a Windows environment, but since the terminal was defaulting to WSL and WSL has its own Python installed in the /usr/bin/ directory, it was failing to run …

  8. visual studio code - Configure run python button to run in current ...

    Mar 15, 2024 · In the newly opened console it runs the Python with the command python -u "path to Python file Then you are using the Code Runner extension to execute scripts, please use the official …

  9. How to execute Python code from within Visual Studio Code

    May 1, 2015 · Install the Python extension (Python should be installed in your system). To install the Python Extension, press Ctrl + Shift + X and then type 'python' and enter. Install the extension. Open …

  10. python - How to run a few selected lines of code in vscode? - Stack ...

    Dec 21, 2019 · 11 How do I execute run Shift + Enter only the selection of highlighted lines of code in vscode? When hitting Shift + Enter there is the following error: Unable to initialize device PRN But …