[Tutor] Total newbie question

Peter Otten __peter__ at web.de
Tue Jan 3 11:07:41 EST 2017

Cameron Simpson wrote:

> On 02Jan2017 17:21, MR ZenWiz <mrzenwiz at gmail.com> wrote:
>>I'm trying to install python 4.6 on my Xubuntu 16.04 desktop, and I
>>keep getting scads of errors that culminate with this from make test:
>>running build
>>running build_ext
>>INFO: Can't locate Tcl/Tk libs and/or headers
> You lack the tk development libraries and/or headers. Try (as root):
>   apt-get install tk-dev
>>The necessary bits to build these optional modules were not found:
>>_bz2                  _curses               _curses_panel
>>_dbm                  _gdbm                 _lzma
>>_sqlite3              _ssl                  _tkinter
>>readline              zlib
> You need a bunch of other devleopment libraries too. You can use
> "apt-cache search" to look for package names, eg "apt-cache search
> readline".
> Based on an Ubuntu system also here try installing: libsqlite3-dev,
> libbz2-dev, libncursesw5-dev, libgdbm-dev, lzma-dev, libssl-dev,
> libreadline-dev, zlib1g-dev.

A nice shortcut for this is to install the build dependencies of the Python 
3 used by your distribution:

$ sudo apt-get build-dep python3.x

Replace x with the actual minor version present on your system.

> Then do a clean configure again and see what it says.
> Cheers,
> Cameron Simpson <cs at zip.com.au>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor

More information about the Tutor mailing list