About 662,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, …

  2. 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".

  3. windows - Python - How do you run a .py file? - Stack Overflow

    Feb 29, 2012 · C:\python23\python YOURSCRIPTNAME.py Then double click that batch file. Or, you can simply run that line in the command prompt while your working directory is the …

  4. What is the difference between "Run Python File" vs "Run Python …

    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 …

  5. Key shortcut for running python file in VS code - Stack Overflow

    Apr 27, 2022 · In VS Code, I'm writing python code. I was wondering if there is a key shortcut to run the file instead of pressing the run button in the right top corner of the screen constantly.

  6. How to run a .py file in windows command line? - Stack Overflow

    Nov 5, 2013 · I have written a simple python program using IDLE to run it from command line. I don't have permission to save .py file in python directory (C:\program files\python33) so I …

  7. How to execute a file within the Python interpreter?

    Jun 22, 2009 · I'm trying to execute a file with Python commands from within the interpreter. I'm trying to use variables and settings from that file, not to invoke a separate process.

  8. 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 …

  9. Run Python script without Windows console appearing

    Jul 27, 2016 · 3. Run the " RunScript.vbs " file with double click and your Python script will be runnig without any visible console windows p.s. I know that this was not part of your question …

  10. python - Run function from the command line - Stack Overflow

    This avoids the weird .pyc copy function that crops up every time you run python -c etc. Maybe not as convenient as a single-command, but a good quick fix to text a file from the command …