About 440,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. 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.

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

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

  5. How do I run a Python program in the Command Prompt in Windows 7?

    Jan 7, 2011 · The PATH environment variable lists all the locations that Windows (and cmd.exe) will check when given the name of a command, e.g. "python" (it also uses the PATHEXT variable for a …

  6. Run Python script without Windows console appearing

    Jul 27, 2016 · 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 output (since …

  7. 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 line, and …

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

    Nov 9, 2017 · 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 already installed

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

  10. How do I run a python program in a virtual environment from windows ...

    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 .py files, you …