tce-load -i expat2-dev libffi-dev openssl-1.0.0-dev sqlite3-dev tk-dev cd Python-3.3.4 find . -name configure.ac -type f -exec sed -i 's/-O2/ /g' {} \; find . -name configure.lineno -type f -exec sed -i 's/-O2/ /g' {} \; find . -name configure -type f -exec sed -i 's/-O2/ /g' {} \; CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe" ./configure --prefix=/usr/local --enable-shared --with-system-expat --with-system-ffi find . -name Makefile -type f -exec sed -i 's/-O3/ /g' {} \; make sudo make install sudo chmod 755 /usr/local/lib/libpython3.3m.so sudo chmod 755 /usr/local/lib/libpython3.so Python build finished, but the necessary bits to build these modules were not found: _bz2 _curses _curses_panel _dbm _gdbm _lzma readline To find the necessary bits, look in setup.py in detect_modules() for the module's name. Failed to build these modules: _tkinter