Current version of Python on Linuxmint 19 is 2.7
First download Python tar from this link. At the time of writing this, l downloaded Python 3.8.2
Run the commands below in the extracted folder.
./configure –enable-optimizations
Result:
Then run:
make
Result:
Then run make test. This needs to succeed before the final step.