Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8366653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:58:04+00:00 2026-06-09T12:58:04+00:00

I download python2.6.6 source form http://www.python.org/getit/releases/2.6.6/ After that I run these commands ./configure make

  • 0

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   
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T12:58:05+00:00Added an answer on June 9, 2026 at 12:58 pm

    I tried following which helped me with some of these modules.

    You have to edit setup.py.
    Find the following lines in setup.py:

    lib_dirs = self.compiler.library_dirs + [
       '/lib64', '/usr/lib64',
       '/lib', '/usr/lib',
       ]
    

    For 64 bit
    Add /usr/lib/x86_64-linux-gnu:

    lib_dirs = self.compiler.library_dirs + [
       '/lib64', '/usr/lib64',
       '/lib', '/usr/lib', '/usr/lib/x86_64-linux-gnu',
       ]
    

    For 32 bit
    Add /usr/lib/i386-linux-gnu:

    lib_dirs = self.compiler.library_dirs + [
       '/lib64', '/usr/lib64',
       '/lib', '/usr/lib', '/usr/lib/i386-linux-gnu',
       ]
    

    Note x86_64-linux-gnu & i386-linux-gnu might be located somewhere else
    in your system so path accordingly.

    Ater this you will be left with only following modules:

    _bsddb             bsddb185           dbm             
    gdbm               sunaudiodev  
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is the page I found to get 2.5.5: http://www.python.org/download/releases/2.5.5/ (I need it for
I noticed that using urllib to download a webpage: http://www.amazon.co.uk/Darkness-II-Limited-PC-DVD/dp/B005ULLEX6 the content that I
In python: I want to download the source of a webpage, after the javascript
I have a data-intensive Python script that uses HTTP connections to download data. I
I have a little python script that I am using to download a whole
I need to download several files via http in Python. The most obvious way
I have a python script to download source code from a list of repositories,
I'm trying to use Python to download the HTML source code of a website
I used cygwin at windows to download android resource as ;http://source.android.com/source/downloading.html but when i
I use python to process web page. I download the souce code of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.