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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T16:23:21+00:00 2026-06-02T16:23:21+00:00

I have Python 2.4 and 2.7 on my Centos server. When I execute python

  • 0

I have Python 2.4 and 2.7 on my Centos server.
When I execute python I get version 2.7 srat up.
When I execute python2.4 I get version 2.4 start up.
The above is as I want but when I execute python2.7 I get python2.4 start up.
I want to put this right but can’t work out how.
I was expecting to see a link from 2.7 to 2.4 but all I can find is as follows:

In /usr/bin directory I have:

python  
python2 -> python
python2.4

In /usr/local/bin I have:

python
python2.7
python2.7-config
python-config -> python2.7-config

I’ve had a look in python2.7-config but can see nothing that may link the python2.7 bin to python2.4.
Can anyone suggest how I might correct this issue. I don’t want to start uninstalling python versions as I know (from bitter experience) that that can mess up the OS.
Thanks

–edit–

/usr/bin/python --- 2.4
/usr/bin/python2 --- 2.4
/usr/bin/python2.4 --- 2.4
/usr/local/bin/python --- 2.7
/usr/local/bin/python2.7 --- 2.4
  • 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-02T16:23:23+00:00Added an answer on June 2, 2026 at 4:23 pm
    1. Try removing python from both /usr/bin/ and /usr/local/bin/ as well
      as removing python2 from /usr/bin/.

    2. Then try running which python2.7 to see, where does python2.7 comes from.

    3. Finally, create a single python and a single python2 symlinks for desired python versions in /usr/bin/. Note, that CentOS may rely on python -> python2.4 and python2 -> python2.4 links.

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

Sidebar

Related Questions

If I have SSH access to a shared server (running centOS) and I want
I have Python 2.4 and 2.7 on my Centos server. I would like to
i have to install mysqldb module of python in my centos server. i have
My CentOS 5.5 server has both Python 2.4 and Python 2.7 installed (to /opt/python2.7.2
I have installed python 2.7 on CentOS 5.5 x86_64 machine. $ file /opt/python2.7.1/bin/python /opt/python2.7.1/bin/python:
I have a problem of upgrading python from 2.4 to 2.6: I have CentOS
I am trying to get started with scons . I have Python 3.0.1 and
I am working in python 2.6 (installed alongside Python2.4.3 required for CentOS) and I
I've installed RVM and then Jruby, this the version that i get when i
I have Python 3.2.2 downloaded and have been using IDLE to execute code; however,

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.