How to Check Your Python Version in the Terminal?

Estimated read time 1 min read

To check your Python version in the terminal, you can use the following command:

python --version

Open your terminal or command prompt and type the command mentioned above. Press Enter to execute the command. The output will display the version of Python installed on your system.

Here’s an example of the output you might see:

Python X.Y.Z

In the example above, X.Y.Z represents the version number of Python installed on your system.

If you have multiple versions of Python installed, you may need to specify the desired version by using a specific command or by configuring your system environment accordingly.

You May Also Like

More From Author

+ There are no comments

Add yours

Leave a Reply