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 8082103
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T16:58:35+00:00 2026-06-05T16:58:35+00:00

Some background info: I’m trying to run a server program in python 2.5.1 (the

  • 0

Some background info:
I’m trying to run a server program in python 2.5.1 (the version the server was written for and tested on). The program needs the OpenSSL library for some of its functions. I installed python 2.5.1 from source as the yum repository for the Amazon Linux instance I’m running on does not have the version of python I need.

When I try to run the server with python 2.5.1 I get the following import error:

Traceback (most recent call last):  
File "<stdin>", line 1, in <module>  
ImportError: No module named OpenSSL

I know that the OpenSSL libraries are installed as I can import them into Python 2.6 (the version of python installed by yum). It’s just that my python 2.5.1 installation can’t see them.

I have also installed pyOpenSSL via yum with no luck.

  • 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-05T16:58:37+00:00Added an answer on June 5, 2026 at 4:58 pm

    installed python libraries are specific to a particular version. so the pyOpenSSL you installed from yum will be for the system python. you need to install a separate instance of pyOpenSSL for the alt-installed 2.5 python.

    if you use python2.5 to install distutils then you’ll find that you have an easy_install-2.5 that you can use: easy_install-2.5 pyopenssl (or similar). but note that may also install a new version of easy_install, overwriting the existing one for the system python (if you have one). to use distutils with the existing package use easy_install-2.7 (if it’s python 2.7).

    does that make sense? basically, each python is distinct and needs its own set of libraries. in contrast, easy_install is installed globally, but there is a version-specific copy of easy_install for each python…!

    if you want to avoid the mess with easy_install, you can use virtualenv. create a new environment for 2.5, enable that, and you can install the pyopenssl in there (using the easy_install from the environment). that may sound more complicated if you’ve never ysed virtualenv, but if you give it a little time to understand it will likely work out better in the long-term.

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

Sidebar

Related Questions

Background info: I have some WCF services that are hosted on an internal server
Some background info: I am currently writing a bootloader in protected mode while learning
I would really like some advice here, to give some background info I am
Can someone give me some info/background info on how I might go about writing
Some Background info: My web application stores some XML in a Text column of
Here's some background info. I have three MySQL tables (all InnoDB). The first table
Hey everyone, some background info: In the config file for my website, I set
Some background info I am programming in a system that uses a proprietary programming
Some background info: I am working on an opengl game for fun/experience, and in
heres some background info: I want to make a menu where clicking on a

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.