How do I know if python is installed on Linux?

How do I know if python is installed on Linux?
Answer
Check Python version from command line / in script
  1. Check the Python version on the command line: –version , -V , -VV.
  2. Check the Python version in the script: sys , platform. Various information strings including version number: sys.version. Tuple of version numbers: sys.version_info.
 

Tìm kiếm

Back
Top