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

    Feb 29, 2012 · 4 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 <filename.py>. Python is …

  2. How do I import other Python files? - Stack Overflow

    How do I import files in Python? I want to import: a file (e.g. file.py) a folder a file dynamically at runtime, based on user input one specific part of a file (e.g. a single function)

  3. 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.

  4. How do I call a function from another .py file? [duplicate]

    function(a, b) Note that file is one of Python's core modules, so I suggest you change the filename of file.py to something else. Note that if you're trying to import functions from a.py to a file called b.py, …

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

    Additionally, if you want to be able to run your python scripts without typing the .py (or .pyw) on the end of the file name, you need to add .PY (or .PY;.PYW) to the list of extensions in the PATHEXT …

  6. Scheduling a .py file on Task Scheduler in Windows 10

    I already tried to convert my .py file into .exe file. Unfortunately, the .exe file gives problems; I believe this is because my code is fairly complicated. So, I am trying to schedule directly my .py file with …

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

    Nov 5, 2013 · I don't have permission to save .py file in python directory (C:\program files\python33) so I saved it to C:\Pyscripts. Also python was already been added to the PATH and I can run a simple …

  8. 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 windows 10.

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

    May 1, 2015 · The debugger passes these in as though they you had typed: python file.py [args] into your terminal; passing each JSON string in the list to the program in order. You can go here for more …

  10. python - What is __init__.py for? - Stack Overflow

    The __init__.py file can contain the same Python code that any other module can contain, and Python will add some additional attributes to the module when it is imported. But just click the link, it contains …