download python 2.7 code example

Example 1: python version

python ––version

Example 2: python 3.7 download

# https://www.python.org/downloads/release/python-370/
# change the last 3 digits in the link to determine version 
# (e.g: '370' -> 3.7.0 && if you want 3.7.5 version just change them to '375')

Example 3: latest version of python

# For macs... 
#  Apparently you don't want to upgrade 2.* just install 3.*

% brew install python3

Example 4: install python 3.7

# Go to Python.org and use archives to explore past releases of Python.
# If you're using an IDE like Thonny, install Python 3.7.9 (depends on how updated your IDE is).

# Download your version of Python and click the executable. Then install after receiving the UAC prompt (Windows).