$ wget https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tgz
$ tar xvf Python-3.6.3.tgz
$ cd Python-3.6.3
$ ./configure --enable-optimizations
$ make -j8
$ sudo make altinstall
$ which python3.6
/usr/local/bin/python3.6
$ sudo ln -fs /usr/local/bin/python3.6 /usr/bin/python
$ python --version
python 3.6
$ sudo python -m pip install setuptools --upgrade
$ sudo python -m pip install pip --upgrade
$ sudo python -m pip install pipenv