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
Open a command prompt window (press Windows+R, type in cmd, and hit enter). Type python.exe
in a Python IDE just copy and paste in the following code and run it (the version will come up in the output area)
you can get version of python by using following command
You can even get version of any package installed in venv using pip freeze as
or using python interpreter as
just start it at terminal
At a command prompt type:
or
NOTE :- Please note that the "V" in python-V command is capital V. python -v (small "v") will launch Python in verbose mode.