Home linux How to find out the version of Python in Linux Ubuntu?

How to find out the version of Python in Linux Ubuntu?

Author

Date

Category

How to view version python in the terminal linux ?


Answer 1, Authority 100%

Interpreter version python is displayed in the terminal command

python --version

However, it should be borne in mind that in modern distributions ubuntu (and not only) there are two versions of the interpreter – Python 2 and Python 3 . The above command will call Python 2 . To invoke python 3 , the command must be different:

python3 --version

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions