tce-load -i compiletc openssl-dev sqlite3-dev tk8.6-dev glib2-dev gdbm-dev bzip2-dev Xorg-7.7-dev liblzma-dev readline-dev note: a previous python3.x cannot be loaded or some files will not be installed cd Python-3.6.4 edit configure CPPFLAGS="$CPPFLAGS -I/usr/local/include/ncursesw" setup.py curses_includes.append('/usr/local/include/ncursesw') CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --localstatedir=/var --enable-shared --with-system-expat --with-system-ffi --with-ensurepip=yes --with-tcltk-includes='-I/usr/local/include' --with-tcltk-libs='-L/usr/local/lib -ltk8.6 -ltcl8.6' find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; find . -name Makefile -type f -exec sed -i 's/-g -O3//g' {} \; make [2m 1.41s] sudo make install sudo chmod 755 /usr/local/lib/libpython3.6m.so sudo chmod 755 /usr/local/lib/libpython3.so