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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T15:11:59+00:00 2026-06-06T15:11:59+00:00

I’m new to Linux/CentOS and I’m not having the most fun using it. I

  • 0

I’m new to Linux/CentOS and I’m not having the most fun using it. I was developing something locally on my Mac using python 2.7 when I ran it on the server I ran into issues which I put down to being the outdated version of Python (2.4.3) I then updated it, which wasn’t a very good idea. I built it from source and then ran into issues, Yum and other modules disappeared.

I’m not back using Python 2.4.3 but I still don’t have Yum back.

[root@issues ~]# yum Could not find platform independent libraries
Could not find platform dependent libraries
Consider setting $PYTHONHOME to [:]

‘import site’ failed; use -v for traceback 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.4.3 (#1, Jun 18 2012, 08:55:31) [GCC 4.1.2 20080704 (Red Hat 4.1.2-52)]

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

Searching loads of forums everyone says that it’s because of a different version of Python, this is no longer the case for me, I think it’s something to do with Yum being mapped to a different directory.

I found this command somewhere else and ran this:

[root@issues ~]# rpm -V python

missing /usr/bin/python2

missing /usr/bin/python2.4

Does anyone know what to do or where to go for help? I really need to get this fixed as soon as possible!

Thanks

Actually just to add, If I run python I get this output.

[root@issues ~]# python

Could not find platform independent libraries

Could not find platform dependent libraries

Consider setting $PYTHONHOME to [:]

‘import site’ failed; use -v for traceback

Python 2.4.3 (#1, Jun 18 2012, 08:55:31)

[GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2

Type “help”, “copyright”, “credits” or “license” for more information.

>

  • 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-06T15:12:01+00:00Added an answer on June 6, 2026 at 3:12 pm

    Yes on Linux systems, it is not a good idea to upgrade default python which is 2.4.x version and Linux package management and many other tools require it to function correctly. It is always better to install other python versions separately and use it directly (like: /usr/bin/python2.7)

    Python executable itself is not working correctly as it is not able to load default module ‘site’ during start-up.

    The python installation is broken.

    Since you can not use “Yum” or “RPM” to bootstrap your packages, I suggest that you use your “OS” installation CD or ISO image to install the rpm/yum packages directly. It will fix the python installation as dependency.

    I had gone through this issue and after various trial, this was only way I could fix it.

    [Edit:]

    See: Python 2.x multiple version issues regarding PYTHONPATH

    Also the error is that it is not able to find the package directory.

    Could not find platform independent libraries <prefix>
    Could not find platform dependent libraries <exec_prefix>
    Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
    

    See the paths that I have. Check out the path of packages and can you set “PYTHONHOME“.

    # installing zipimport hook
    import zipimport # builtin
    # installed zipimport hook
    # /usr/lib64/python2.4/site.pyc matches /usr/lib64/python2.4/site.py
    import site # precompiled from /usr/lib64/python2.4/site.pyc
    # /usr/lib64/python2.4/os.pyc matches /usr/lib64/python2.4/os.py
    import os # precompiled from /usr/lib64/python2.4/os.pyc
    

    If you are not able to locate similar package location, can you use RPM to directly install python2.4 again

    rpm --force -hUv url_for_python_rpm
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
We're building an app, our first using Rails 3, and we're having to build
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I want use html5's new tag to play a wav file (currently only supported
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We are using XSLT to translate a RIXML file to XML. Our RIXML contains

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.