Home >Operation and Maintenance >Linux Operation and Maintenance >How to check python version in linux
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.
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
##Method 2
whereis python
Execute the command in the terminal: python --version
Related recommendations: "
Linux Video TutorialThe 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!