Installing Python 2.6.2 on Ubuntu 12.1

Behzad Dastur bdastur at
Mon Jul 21 18:36:18 CEST 2014

Question: How to install Python manually and make sure that all the
necessary modules and .so files get built (eg:,


I am trying to install Python2.6.2 version manually, installation goes
through fine, but later installing setuptools fails due to _sha256 Module
not found.

These are the steps I did for manually installing python in my private

 1. ./configure --help

 2.  ./configure --prefix=/home/brd/priv_env

 3. make; make install

The installation went through successfully, however I noticed that some of
the _*.so files did not get built under lib/python2.6/lib-dynload/ folder
(eg , which is likely the reason why my setuptools install
failed due to the error:


  File "/home/cisco/priv_env/lib/python2.6/", line 138, in

    sha224 = __get_builtin_constructor('sha224')

  File "/home/cisco/priv_env/lib/python2.6/", line 66, in

    import _sha256

ImportError: No module named _sha256"

Note that I have the necessary libraries installed on this machine eg:,




Another note, is that the standard python installation on this system
(Python 2.7.3), does not have this problem, and has all the modules and .so
files built.

Sincere Regards,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list