This should save you some time on finding the right commands to run: https://github.com/shenghuahe/ubuntu1604_python36_installer