And then ./python-build -v 3.6.1 /opt/python-3.6.1 and you're done.
You'll have to manage your paths manually for your shell/terminal though, this is basically what you'll need to do, though this is for perl but can be easily adapted: http://tinyurl.com/y8h7lbt2
If you want the latest python, just use the python-build script from here: https://github.com/pyenv/pyenv/tree/master/plugins/python-bu...
And then ./python-build -v 3.6.1 /opt/python-3.6.1 and you're done.
You'll have to manage your paths manually for your shell/terminal though, this is basically what you'll need to do, though this is for perl but can be easily adapted: http://tinyurl.com/y8h7lbt2