I am using a RPi2, and I successfully managed to follow the suggested procedure to install python3.6. But as pointed out by a commenter, I ran into problems with ssl when I tried to install packages with pip.
I learned from another thread on different subject that I need to install ssl before I compile.
sudo apt-get install libssl-dev
wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tgz
tar xzvf Python-3.6.0.tgz
cd Python-3.6.0/
./configure
make
sudo make install
python3.6 -V
python3.6 -m pip install --upgrade pip
python3.6 -m pip install --user numpy
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libatlas-base-dev gfortran
python3.6 -m pip install --user scipy
the installation of scipy with pip takes a very long time (hours) and I am looking
for a solution. I'll get back to this. the rest of the installation is now put on hold.
python3.6 -m pip install --user matplotlib
python3.6 -m pip install --user ipython
python3.6 -m pip install --user jupyter
python3.6 -m pip install --user pandas
python3.6 -m pip install --user sympy
python3.6 -m pip install --user nose
The upside of having to compile python3.6 a second time was a much faster compile the second time. On the other hand it takes a long time to install numpy, and that is why i split up the package installation.