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

  • SEARCH
  • Home
  • 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 7898107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T08:20:40+00:00 2026-06-03T08:20:40+00:00

I have python 2.5.1 installed on my Ubuntu 10.04 x86_64 machine. When i try

  • 0

I have python 2.5.1 installed on my Ubuntu 10.04 x86_64 machine.

When i try to import hashlib/md5, the i get this error

>>> import hashlib 
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.5/hashlib.py", line 133, in <module>
md5 = __get_builtin_constructor('md5')
File "/usr/local/lib/python2.5/hashlib.py", line 60, in __get_builtin_constructor
import _md5
ImportError: No module named _md5

I have tried most of the solutions that I could find on google, but nothing works for me. Does anyone know how to solve this? Thank you!

  • 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-03T08:20:41+00:00Added an answer on June 3, 2026 at 8:20 am

    You have to have the package libssl-dev installed before configuring and compiling python from the tarball:

    sudo apt-get install libssl-dev
    cd YOUR_PYTHON_2.5_1_SRC_DIR
    make clean
    ./configure
    make
    sudo make install
    

    Do you have a good reason not to use the latest version in the 2.5.X series?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed numpy1.3,scipy 0.7.1,matplotlib 0.99.1.1 and python 2.5 when I import pylab I
I am running Ubuntu 10.04, I have python installed and running fine. When I
How can I update all python modules I have installed on ubuntu?
I'm using Python 2.7.2 on Ubuntu 11.10. I got this error when importing the
When I run python manage.py dbshell command I get this error: Error: You appear
I have installed python 2.6.6 and python 2.5.5 on the same machines (Ubuntu 10.0.4),
I have django+python+apache2+mod_python installed hosted and working on ubuntu server/ linode VPS. php5 is
I try Library SimpleCV. I have Ubuntu 11.10, Python 2.7 with PIL (python-imaging ver.
I have compiled and installed python 2.7 on my ubuntu lucid. But I am
I have tried this tutorial http://adrian.org.ar/python/django-nginx-green-unicorn-in-an-ubuntu-11-10-ec2-instance to setup django with ngnix and gunicorn.I have

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.