How to Check Python Module Versions from the Command Line? - Ask a Question - TestMu AI Community
Which version of Python do I have installed? - Stack Overflow
How do i check my Python Version Using Command Line.?
(I can't even) Get going with Python: py --version "name 'py' is not defined
Videos
To check the version of one's Python's Software version, one should use the following code in command prompt:
python -V
Reference: http://docs.python.org/using/cmdline.html#generic-options
In a Python IDE, just copy and paste in the following code and run it (the version will come up in the output area):
import sys
print(sys.version)
Evening r/Python
The reason for this post is because i am having trouble checking my Python version using the command prompt. Am originally a Mac user, so not sure if the PC transition is what has me confused. Anyways, i know i have Python Version 3.7 installed in my system. However, when i run the python --version command line in both the regular command prompt and administrator command prompt, i get THIS error message.
How come.? This is not really about what version I'm running, as it is about me trying to use the pip install command to install packages. But i figured start at the begging so if command prompt won't even recognize my python installation, why first waste my time trying to figure out why is wont recognize the pip call.
Anyhow, any comments/suggestions would be greatly appreciated. Thank you in advance and good day.! Cheers.! :)