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

    Feb 29, 2012 · Check that python's bin folder is in your PATH, or you can do c:\python23\bin\python <filename.py>. Python is an interpretive language and so you need the …

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

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

    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.

  4. How to execute Python scripts in Windows? - Stack Overflow

    The Python launcher for Windows is a utility which aids in the location and execution of different Python versions. It allows scripts (or the command-line) to indicate a preference for a specific …

  5. executable - run program in Python shell - Stack Overflow

    What do you mean by "the python shell"? Did you run python from the command line? Or are you using IDLE or some other program which can also provide a Python >>> prompt?

  6. komodo - How do I run a Python program? - Stack Overflow

    Jan 18, 2023 · The command py -3 file.py always works for me, and if I want to run Python 2 code, as long as Python 2 is in my path, just changing the command to py -2 file.py works …

  7. python - How to run .py codes on jupyter lab? - Stack Overflow

    Jun 30, 2019 · How can I run .py files from jupyter lab? I have spent my all coding life using jupyter notebook and jupyter lab but replication codes of research papers are mostly in .py file …

  8. How do I run Python script using arguments in windows command …

    Now, when you type in command prompt: > your_script.py param1 param2 Windows will ask you to confirm file association. Just select Python and tick Always use this app to open .py files …

  9. python - Unable to Run .py script in command prompt - Stack …

    Mar 9, 2017 · You have to run the python command in the directory that contains the file, or you must give the full path of the file. If you wanted to run it as it was you would do: py …

  10. How can I run a .py file with its options in Python console?

    Feb 23, 2020 · Debugging Command Line Script With PyCharm In many cases, a Python script is written to run from the OS shell and take command line options from the user. These kinds of …

Refresh