About 380,000 results
Open links in new tab
  1. windows - Python - How do you run a .py file? - Stack Overflow

    Feb 29, 2012 · Since you seem to be on windows you can do this so python <filename.py>. Check that python's bin folder is in your PATH, or you can do c:\python23\bin\python …

  2. how to open and edit py file in command prompt windows 10

    The associated shell-execute command (associated default application and command to open the file) usually is stored and can be set in Windows-registry. In the case of a .py file it can for …

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

    Nov 6, 2023 · I'm trying to use variables and settings from that file, not to invoke a separate process. Well, simply importing the file with import filename (minus .py, needs to be in the …

  4. Creating a BAT file for python script - Stack Overflow

    Apr 15, 2019 · @echo off title Execute Python [NarendraDwivedi.Org] :main echo. set/p filename=File Name : echo. %filename% goto main Now place this file in the folder where …

  5. How to launch a Python file on Windows 7? - Stack Overflow

    Apr 18, 2011 · 3) Set your PATHEXT variable to include ;.PY. (This is the bit that saves you from typing myscript.py) This may now just work. Try opening a command window and typing …

  6. How do I open and view Python PY files on Windows 10?

    Nov 8, 2021 · I need help on how to open Python PY files in my Windows 10. PY is a script file written in the Python programming language and I am finding it difficult to open the files on my …

  7. Running python script in Blender - Stack Overflow

    Jul 22, 2012 · Open a Text Editor view in Blender. Press Alt + O, or go to Text>Open Text Block and open the .py file; Then simply press Run script :D; P.s. Instead of opening a file in step 2, …

  8. How to run a Python file in Visual Studio code from the terminal?

    Nov 28, 2022 · Open the folder using VS Code: File -> Open Folder; Create your script and save it in the folder; Open a new terminal: Terminal -> New Terminal; Type the command: python …

  9. How to stop Python closing immediately when executed in …

    Open your cmd (command prompt) and run Python commmands from there. (on Windows go to run or search and type cmd) It should look like this: python yourprogram.py This will execute …

  10. Importing .py files in Google Colab - Stack Overflow

    Oct 13, 2020 · I solved this by uploading the client.py file to the same Google Drive folder in which the Colab Notebook is saved in and change its name to something unique that doesn't appear …