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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T01:47:28+00:00 2026-06-07T01:47:28+00:00

Possible Duplicate: Upgrade python without breaking yum I’m running a Redhat VM (2.6.18-274.el5 64

  • 0

Possible Duplicate:
Upgrade python without breaking yum

I’m running a Redhat VM (2.6.18-274.el5 64 bit). I installed nodejs on the vm in order to use browserstack. To get nodejs running I had to upgrade Python to 2.6 or above. I installed 2.7 from source using make altinstall. Then I createda hard-link to point from 2.4 to 2.7. Checking the python -V now shows 2.7 being the default. That all worked out fine and node is now up and running.

There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   No module named yum

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.7.2 (default, Jul  2 2012, 23:35:52) 
[GCC 4.1.2 20080704 (Red Hat 4.1.2-51)]

If you cannot solve this problem yourself, please go to 
the yum faq at:
  http://wiki.linux.duke.edu/YumFaq

My problem is Yum. It’s no longer working as its looking for the older version of Python which is 2.4? Is there anyway I can have both of them working as in Yum and node both using different versions?

  • 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-07T01:47:29+00:00Added an answer on June 7, 2026 at 1:47 am

    There are two issues here. One is that you broke your system python. Yum is installed in the python’s site packages. If you damage python, yum will break. Breaking the system python installation is a stupid idea. Maybe you made backups, or have another sister machine from which you can transplant the original 2.4 python.

    The other issue is that there is no problem with having several pythons on the same machine. To install Node.js you must simply tell it which python to use. Set PYTHON=/opt/local/my/path/to/python2.7/bin/python, possibly PYTHONHOME as well, before running ./configure .

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

Sidebar

Related Questions

Possible Duplicate: Python : how to append new elements in a list of list?
Possible Duplicate: Rails 2.3-style plugins and deprecation warnings running task in Heroku A few
Possible Duplicate: How do I shutdown JBoss AS 7 server? I installed jboss-7.1.0 and
Possible Duplicate: How do I upgrade APC on Zend Community Server (needed for Symfony2)?
Possible Duplicate: Maximum Java heap size of a 32-bit JVM on a 64-bit OS
Possible Duplicate: Unload a module in Python After importing Numpy, lets say I want
Possible Duplicate: Python urllib2 Progress Hook I have a script which uploads a file
Possible Duplicate: Upgrade PHP from version 5.2 to 5.3 I have 15 sites implemented
Possible Duplicate: Why should I upgrade to c# 4.0? Our projects are currently all
Possible Duplicate: SSL handshake alert: unrecognized_name error since upgrade to Java 1.7.0 My J2SE

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.