On Wed, 31 May 2023 08:34:48 +0100, Mark Bass <
markb...@gmail.com>
declaimed the following:
You are RERUNNING the Python installer package.
Once you installed Python -- move that installer package to some
safe/obscure location on your computer (you should only need it if you
really need to fix an error with the installation).
Python does not provide, normally, a "click me" icon to run Python.
Python is a command line language INTERPRETER/COMPILER. If file
associations are set up, clicking on a script (.py) file /will/ run it --
but the window it opens goes away as soon as the script completes. Instead
one opens a command shell window and runs Python/scripts from that
window...
Microsoft Windows [Version 10.0.19045.2965]
(c) Microsoft Corporation. All rights reserved.
C:\Users\Owner>python
Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929
64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
C:\Users\Owner>dir *.py
Volume in drive C is Sys_OS
Volume Serial Number is B650-6F92
Directory of C:\Users\Owner
04/15/2023 04:57 PM 50 junk.py
1 File(s) 50 bytes
0 Dir(s) 1,884,894,617,600 bytes free
C:\Users\Owner>python junk.py
2 4 6 8 10 12
C:\Users\Owner>junk.py
2 4 6 8 10 12
C:\Users\Owner>
Note: depending upon your environment, neither file associates nor
Python may be set up on the path. You may have a "py" command that is set
up to find and run Python (and allow specifying which version if you have
multiple versions (in different directories). Also, you may be affected by
whether Python was installed for "all users" or just the account that did
the install.