Python Forum
How to find out from outside Python (in Windows) the current version of Python?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to find out from outside Python (in Windows) the current version of Python?
#5
(Oct-04-2023, 03:44 AM)pstein Wrote: py.exe

is NOT part of the Windows Python v3.12.0 installation.
So your suggestion is useless for me
It dos install,but not in Python folder.
Before it did install to C:\Windows,now it install to C:\Users\<Pc User>\AppData\Local\Programs\Python\Launcher\py.exe
The reason for this is OS environment path,so it always available.
[Image: PY3xI5.png]

C:\code
λ py --version
Python 3.12.0

C:\code
λ py -3.10 --version
Python 3.10.4

C:\code
λ where py
C:\Users\Tom\AppData\Local\Programs\Python\Launcher\py.exe
Reply


Messages In This Thread
RE: How to find out from outside Python (in Windows) the current version of Python? - by snippsat - Oct-04-2023, 10:01 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  how to find difference between fake driving license or real using python? pjaymn 5 3,001 Jun-14-2024, 07:01 AM
Last Post: Pedroski55
  run part of a script with a different version of Python jdog 3 725 May-27-2024, 01:57 AM
Last Post: Alice12
Question How to add Python folder in Windows Registry ? Touktouk 1 445 Feb-20-2024, 01:04 PM
Last Post: DeaD_EyE
  Python Launcher (on Windows) only necessary when 2 or more Python versions installed? pstein 1 504 Feb-17-2024, 12:43 PM
Last Post: deanhystad
  Triggering a ps1 script in remote windows server via http python request jasveerjassi 1 534 Jan-26-2024, 07:02 PM
Last Post: deanhystad
  Can't Find Python (or Something) pklind 2 708 Nov-26-2023, 11:11 AM
Last Post: snippsat
Question Need Help with Vehicle Routing Problem with Time Windows (VRPTW) in Python kasper321421312 1 808 Nov-10-2023, 08:19 PM
Last Post: snippsat
  Installation of packages to newest Python version from previous one Andrzej_Andrzej 3 1,093 Jul-15-2023, 11:32 AM
Last Post: snippsat
  pip installs in a different python version and directory than the default 3.11 ao_tex_mal 9 4,408 Jun-20-2023, 02:55 PM
Last Post: snippsat
  Python script running under windows over nssm.exe JaroslavZ 0 844 May-12-2023, 09:22 AM
Last Post: JaroslavZ

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020