Compilation steps:
apt-get install -y make build-essential libssl-dev zlib1g-dev
apt-get install -y libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm
apt-get install -y libncurses5-dev libncursesw5-dev xz-utils tk-dev
tar xvf Python-3.6.5.tgz
cd Python-3.6.5
./configure --enable-optimizations --prefix=/usr/local/python365
make -j20
I've tried this and similar ways of compiling Python and it's always the same, it hangs on:
0:00:28 load avg: 0.90 [ 25/406] test_asyncio