Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python command interface
#6
from within a python script (if this is what you want), you can use:
import sys

vinfo = sys.implementation.version
print(f"python version: {vinfo.major}:{vinfo.minor}:{vinfo.micro} release: {vinfo.releaselevel}")
This will produce something like:
Output:
python version: 3:11:4 release: final
Reply


Messages In This Thread
python command interface - by cwc2 - Sep-19-2023, 03:49 AM
RE: python command interface - by cwc2 - Sep-19-2023, 04:08 AM
RE: python command interface - by menator01 - Sep-19-2023, 04:48 AM
RE: python command interface - by Pedroski55 - Sep-19-2023, 07:31 AM
RE: python command interface - by garynewport - Sep-19-2023, 09:33 AM
RE: python command interface - by Larz60+ - Sep-20-2023, 05:19 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  os.system("netsh interface set interface 'Wi-Fi' enabled") aniyanetworks 12 10,648 Jan-18-2019, 04:07 AM
Last Post: aniyanetworks
  Interface Arduino and MSSQL using Python MichaelDean 0 2,991 Nov-18-2018, 05:00 PM
Last Post: MichaelDean
  Python Interface for HWM14 sdipti596 4 5,466 Dec-26-2017, 10:21 PM
Last Post: Terafy
  Python interface only black and white........ Wilson 3 6,350 Jul-15-2017, 01:20 PM
Last Post: sparkz_alot

Forum Jump:

User Panel Messages

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