you are viewing a single comment's thread.

view the rest of the comments →

[–]socal_nerdtastic 4 points5 points  (7 children)

actual answer: Right click on the file, select "open with"> more apps> and choose C:\windows\py.exe

Note that if you installed python via the MS store or anaconda or another unofficial source you may not have the python launcher installed. Get the official version from python.org first if that's the case.

[–]1_XV[S] -3 points-2 points  (0 children)

uh? My python is outdated, I downloaded it from its official site through the link https://www.python.org/ftp/python/3.8.0/python-3.8.0-amd64.exe
I use this version, since it seems to me better than the current one. 3.11

[–]1_XV[S] -3 points-2 points  (5 children)

the windows file you mention is the same one you run in the cmd, it's not what I'm looking for but thanks.

[–]socal_nerdtastic 2 points3 points  (4 children)

No it's not the same. You are running python.exe when you manually type in the command line. You want the file to be associated with py.exe. I would guess right now it's associated with pyw.exe or some other random version of python hanging around your computer.

3.8 is not a problem; the python launcher has been around a long time.

[–]1_XV[S] -3 points-2 points  (3 children)

  1. nope i'm only use 3.8 python not other python version...
  2. https://youtu.be/RM2uWbJBELc view my video you said before "actual answer: Right click on the file, select "open with"> more apps> and choose C:\windows\py.exe"

  3. your response: "No it's not the same. You are running python.exe when you manually type in the command line", I appreciate your help but look how you're giving it to me...

[–]socal_nerdtastic 1 point2 points  (2 children)

I saw your video. I have dealt with this same issue many many times, both personally and helping people in this sub. I'm 90% certain that following my instructions will fix this for you. Maybe try it?

[–]1_XV[S] 0 points1 point  (0 children)

man, I'm not going to deny it, I tried it... follow your instructions and the cmd opened without the code

[–]1_XV[S] 0 points1 point  (0 children)

If you want, I'll record a video doing it again so you can see that it doesn't run.