Note: This article was written in 2021 and edited in 2023, so some version values are very old.
Most of the time, the OS would integrate Python in some version. We can check the version first. If Python is not installed, we can install it then.
% python --version
Python 2.7.16
% python3 --version
Python 3.7.3
$ python --version
Python 2.7.18
$ python3 --version
Python 3.8.6
If Python is not installed:
$ python --version
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.
When Python
is installed, it shows:
$ python --version
Python 3.8.5