I download python2.6.6 source form http://www.python.org/getit/releases/2.6.6/
After that I run these commands
./configure
make
I tried to import zlib but it says no module named zlib. How can install zlib module for it
After I tried installing python2.6.8 I got same error no zlib.
While installing it I got below error
Failed to find the necessary bits to build these modules:
_bsddb _curses _curses_panel
_hashlib _sqlite3 _ssl
_tkinter bsddb185 bz2
dbm dl gdbm
imageop linuxaudiodev ossaudiodev
readline sunaudiodev zlib
To find the necessary bits, look in setup.py in detect_modules() for the module’s name.
Failed to build these modules:
crypt nis
I tried following which helped me with some of these modules.
You have to edit setup.py.
Find the following lines in setup.py:
For 64 bit
Add
/usr/lib/x86_64-linux-gnu:For 32 bit
Add
/usr/lib/i386-linux-gnu:Note
x86_64-linux-gnu&i386-linux-gnumight be located somewhere elsein your system so path accordingly.
Ater this you will be left with only following modules: