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

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

    14 #!/usr/bin/env python I put that at the top of a script. I've seen that should make the script runnable from the command line without the need for python programname.py. Unless I'm …

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

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

    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 …

  5. Run Python script without Windows console appearing

    Jun 16, 2015 · pythonw.exe will run the script without a command prompt. The problem is that the Python interpreter, Python.exe, is linked against the console subsystem to produce console …

  6. How to run my python script on docker? - Stack Overflow

    Nov 9, 2017 · 47 I am trying to run my python script on docker. I tried different ways to do it but not able to run it on docker. My python script is given below: import os print ('hello') I have …

  7. How do I run a python program in a virtual environment from …

    Jun 9, 2020 · But if you explicitly run the qualified path of "python [.exe]" in the venv, you do not need to activate it. In particular, in Windows if the py launcher is installed an associated with …

  8. How do I run a Python program in the Command Prompt in …

    Jan 7, 2011 · Python comes with a script that takes care of setting up the windows path file for you. After installation, open command prompt cmd Go to the directory you installed Python in …

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

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