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 latest version of Python.
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
In Short :
Simply open command prompt
(Clr + R)
and typecmd
and and in command prompt then typingpython
will give you all necessary info regarding versionsPython 2.5+:
Python 2.4-:
Although the question is "which version am I using?", this may not actually be everything you need to know. You may have other versions installed and this can cause problems, particularly when installing additional modules. This is my rough-and-ready approach to finding out what versions are installed:
The output for a single Python installation should look something like this:
Multiple installations will have output something like this:
so from the command line:
On Windows 10 with Python 3.6