How do I check python version?

Bảo Vy

Member
How do I check python version?
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. Version number string: platform.python_version()
20 сент. 2019 г.
 

Tìm kiếm

Back
Top