Python 3.8.5 Not Launching

Eryk Sun eryksun at gmail.com
Wed Sep 23 18:43:43 EDT 2020


On 9/23/20, yehudisgru at gmail.com <yehudisgru at gmail.com> wrote:
>    It’s a py file with simple python code

If .py files are associated with py.exe or python.exe, then running a
.py script either inherits or allocates a console and attaches to it.
The console closes automatically as soon as the last reference to it
closes. If you need the console to remain open, then it should be
inherited from the parent process. Typically that's a shell such as
CMD or PowerShell, but any process can manually allocate an
inheritable console via WinAPI AllocConsole.

To run a script from a shell command line, simply enter
"path\to\some_script.py". If the script is in a PATH directory and .PY
is in PATHEXT, then you can simply run "some_script" in CMD or
PowerShell.


More information about the Python-list mailing list