Check Python Version at Runtime | Detect Python Version from Scripts | (4 ways) by OsChannel

Publié le: 21 novembre 2021
sur la chaîne: OsChannel
105
5

Best Way to Check Python Version at Runtime:

In this video, we learn how to check to 'python version at runtime' from our python tools and scripts and then, if required, notify the user if the version in his environment does not meet our requirements.
I'll be showing you guys 4 ways to check the Python Versions at Runtime and then you can use the best one from all.
We are going to use the options from the 'sys' module and the 'platform' module in our examples to check the python version at runtime from our VScode terminal in mac.
I am using VSCode and Jupyter notebooks for this demo.

Tutorial Timeline:
00:00 Introduction & Need
00:33 sys.version
01:06 platform.python_version()
01:35 platform.python_version_tuple()
02:21 sys.version_info
03:14 Outro - Subscribe to OsChannel for more.



---
About OsChannel:
OsChannel.com is a tech channel that makes tutorial videos/vlogs about all kinds of tech and mech.

Watch more videos on Mac tricks, tips, shortcuts, and fixes:
   • Mac Tricks, Tips, Shortcuts and Fixes  

Watch full Python Tutorials by OsChannel.com:
   • Python Tutorials  

Watch all Python #Shorts by OsChannel.com:
   • Python #Shorts by OsChannel  

Watch all #Short Videos by Oschannel:
   • #Short Videos  

CHANNEL LINK:
   / oschanneldotcom  

LINK TO MY WEBSITE:
https://oschannel.com [ Currently redirected to Youtube ]

#python #coding #devops


Sur cette page du site, vous pouvez voir la vidéo en ligne Check Python Version at Runtime | Detect Python Version from Scripts | (4 ways) by OsChannel durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur OsChannel 21 novembre 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 105 fois et il a aimé 5 téléspectateurs. Bon visionnage!