Home  >  Article  >  Operation and Maintenance  >  How to check python version in linux

How to check python version in linux

青灯夜游
青灯夜游Original
2022-01-05 18:48:5619524browse

How to query the python version on Linux: 1. Execute the "python -V" command in the terminal; 2. Execute the "whereis python" command in the terminal; 3. Execute "python --version" in the terminal Order.

How to check python version in linux

The operating environment of this tutorial: linux5.9.8 system, python version 2.6.6, Dell G3 computer.

Linux query python version

Method 1

Execute the command in the terminal: python -V

How to check python version in linux

##Method 2

Execute the command in the terminal:

whereis python

How to check python version in linux

#Method 3

Execute the command in the terminal: python --version

How to check python version in linuxRelated recommendations: "

Linux Video Tutorial

"

The above is the detailed content of How to check python version in linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn