Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (19k points)

I have to run a Python script on a Windows server. How can I know which version of Python I have, and does it even really matter? I was thinking of updating to the latest version of Python.

1 Answer

0 votes
by (106k points)

There are many ways to check the version of Python that you have installed I am mentioning here some of the easiest methods:-

The first thing you can do is write the below-mentioned command which will tell you the Python version that you have installed:-

python -V

If you want to use the Python IDE then you can use the following piece of code:-

import sys

print(sys.version)

image

Related questions

Browse Categories

...