Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python 3.3 source code setup: modules were not found: _lzma _sqlite3 _tkinter

I am trying to set up the compiled version of CPython, on Ubuntu 12.04, by following the python developer guide. Even after installing the dependent packages lzma and sqlite3, build fails indicating that the dependent modules were not found. Exact Error:

*Python build finished, but the necessary bits to build these modules were not found: _lzma _sqlite3 _tkinter
To find the necessary bits, look in setup.py in detect_modules() for the module's name.*

I could not locate the package tkinter. Appreciate any help.

like image 393
NaveenBabuE Avatar asked Aug 19 '12 02:08

NaveenBabuE


1 Answers

In general, see Python Developer's Guide for dependencies. There it says:

"If you want to build all optional modules, install the following packages and their dependencies":

sudo apt-get install build-essential gdb lcov pkg-config \
  libbz2-dev libffi-dev libgdbm-dev libgdbm-compat-dev liblzma-dev \
  libncurses5-dev libreadline6-dev libsqlite3-dev libssl-dev \
  lzma lzma-dev tk-dev uuid-dev zlib1g-dev
like image 100
vfinn Avatar answered Sep 20 '22 21:09

vfinn