On 12/31/20 8:11 AM, BearGod777 wrote:
i am trying to open it by just left clicking the file in file explorer and
i tried right clicking it and then pressing open with python 3.9.1 64-bit

That *shouldn't* open the installer... (you can actually remove the installer file once you're done installing, it can maybe reduce some confusion).

What you're doing is going to give you probably unexpected results anyway. Here's why: (when it's set up properly) when clicking from explorer Windows will create a window to run the Python interpreter in, and when your script finishes, Python quits. Windows will take that as a clue that the window is no longer needed, and it will be discarded. This will usually have the visual effect of a window flashing onto the screen and then vanishing, as if things were broken, but they're not. Only a Python script that is written to manage a display window, is going to stay around. An old is to add an input() call at the end of your script, so it waits for you to hit the enter key before finishing, and that will leave the window open)

Either run your scripts from a command shell...

Or use an editor or IDE that has an integrated way to run your programs there in the editor's environment - here the IDE manages the windows so you don't get the opens-then-closes effect.

Hope this helps.

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to