Python version5/2/2023 ![]() ![]() ![]() Sometimes, you might assume that Python3 is running, but Python2 is actually running instead. It is useful to check which version of Python is running when multiple Python installations exist in the same environment. The same script works on Windows, Mac, and Linux, including Ubuntu. You can use the standard library sys module or platform module to get the version of Python that is actually running. Python 3.7.0 (default, Jun 29 2018, 20:13:13 ) Check Python version in the script: sys, platform ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |