About 1,530,000 results
Open links in new tab
  1. 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 saved it to …

  2. run python script directly from command line - Stack Overflow

    python -m myscript from the command line, as long as you have Python installed and on your path environment variable (i.e. set to run with python, which, if installed, would typically be the case). …

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

    python myscript.py myfunction This works because you are passing the command line argument (a string of the function's name) into locals, a dictionary with a current local symbol table. The …

  4. Running Python scripts through the Windows Command Line

    Apr 17, 2017 · A correctly installed Python 3.6 should associate .py [w] files with the py.exe launcher and pass command-line arguments. The py launcher handles running multiple versions of Python …

  5. 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 interpretor to run your file, …

  6. How do I run Python script using arguments in windows command line

    If "hello.py" is in a PATH directory, and running hello 1 1 doesn't pass the command-line arguments, then the .py file association is broken. If CMD or PowerShell doesn't find "hello.py", then .PY isn't in …

  7. how to run python files in windows command prompt?

    I want to run a python file in my command prompt but it does nothing. These are the screen shots of my program i am testing with and the output the command prompt gives me.

  8. How to use Anaconda Python to execute a .py file?

    Oct 12, 2016 · 40 I just downloaded and installed Anaconda on my Windows computer. However, I am having trouble executing .py files using the command prompt. How can I get my computer to …

  9. Python - add PYTHONPATH during command line module run

    I tried python -c"import sys;sys.path.append('/my/dir')" and then python myscript.py mycommand, but it obviously doesn't share the path from the first interpreter session with the next.

  10. Visual Studio Code: run Python file with arguments

    Apr 30, 2017 · To start debugging, first issue the command line command in the terminal and then launch the (newly created) launch configuration Python: Remote Attach from the debug launch menu …