Python 3.3 source code installation: no modules were found: _lzma _sqlite3 _tkinter

I am trying to configure a compiled version of CPython on Ubuntu 12.04, following the python developer guide. Even after installing the lzma and sqlite3 dependent packages, a build failure indicates that no dependent modules were found. Exact error:

* Python build is complete, but no necessary bits were found to build these modules: _lzma _sqlite3 _tkinter
To find the necessary bits, go to setup.py in detect_modules () for the module name. *

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

+5
source share
4 answers

I was able to create Python 3.3without modification setup.pyafter installing the following packages in the Ubuntu Precise field.

build-essential 
zlib1g-dev 
libbz2-dev 
libncurses5-dev 
libreadline6-dev 
libsqlite3-dev 
libssl-dev 
libgdbm-dev
liblzma-dev
tk8.5-dev
+15

lzma sqlite3 (LD_LIBRARY_PATH). ; ? , ? , , lzma sqlite3? , Python include.

, setup.py, , .

tkinter: tcl/tk, , , python/tkinter .

+2

(Python 3.4, Ubuntu 13.04), "make":

sudo apt-get install build-essential python-dev libncurses*-dev \
                     liblzma-dev libgdbm-dev libsqlite3-dev \
                     libbz2-dev tk-dev

:

cd python3.4
make clean && ./configure && make && sudo make install
+1
0
source

All Articles