tce-load -i compiletc sqlite3-dev tk8.6-dev glib2-dev gdbm-dev Xorg-7.7-dev wget https://www.python.org/ftp/python/3.6.12/Python-3.6.12.tar.xz cd Python-3.6.12 edit setup.py curses_includes.append('/usr/local/include/ncursesw') CPPFLAGS="-I/usr/local/include/ncursesw" CC="gcc -mtune=generic -Os -pipe" CXX="g++ -mtune=generic -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' --with-lto find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; find . -name Makefile -type f -exec sed -i 's/-g -O3//g' {} \; find . -name Makefile -type f -exec sed -i 's/flto-partition=none -g/flto-partition=none/g' {} \; make [2m 47.36s] sudo make install sudo chmod 755 /usr/local/lib/libpython3.6m.so sudo chmod 755 /usr/local/lib/libpython3.so