HowTo: Find Python Version
To find out the version of Python installed on your system, you can use the python command in a terminal window. Here are the steps to follow:
- Open a terminal window on your system.
- Type the following command and press Enter:
python --versionThis command will display the version of Python installed on your system. For example, if you have Python 3.9 installed, the output might look like this:
Python 3.9.5If you have multiple versions of Python installed on your system, you can use the python3 command instead to specify the version of Python you want to check. For example:
python3 --versionThis command will display the version of Python 3 installed on your system.
Note that the above commands assume that the python or python3 command is in your system's PATH. If you're having trouble finding the correct version of Python, you can also try using the which command to locate the location of the Python executable. For example:
which pythonThis command will display the location of the python executable on your system, which should help you determine the version.
