'error while updating Python from the tar.gz file

I want to upgrade my python3.7.9, I ran .tgz file of both 3.7.12 and 3.7.13 both are giving the same error

enter image description here



Solution 1:[1]

u cant install python with pip
extract the tgz file and go to the directory (cd)

then type python setup.py install --user

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 BGOPC