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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T08:48:48+00:00 2026-06-12T08:48:48+00:00

This is the output when I write whereis python2.7 python2.7: /usr/local/bin/python2.7 /usr/local/lib/python2.7 /opt/python2.7.1/bin/python2.7 Version

  • 0

This is the output when I write whereis python2.7

python2.7: /usr/local/bin/python2.7 /usr/local/lib/python2.7 /opt/python2.7.1/bin/python2.7

Version of python under /usr/local/ is python2.7.2 and version of python under /opt/python/2.7.1 is python2.7.1 as you see.

When I write python it runs python2.7.1 because I changed the bash_profile. But When I write python2.7 it runs python2.7.2.

I would like totally remove the python2.7.2 which is under the /usr/local/ and use the binary under /opt/python2.7.1.

How can I solve this problem?

Note: It is a CentOS5 server and python2.4 is already installed as you consider.

  • 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-12T08:48:49+00:00Added an answer on June 12, 2026 at 8:48 am

    your PATH is mixed up, do the following:

    export PATH=/opt/python2.7.1/bin:$PATH
    export LD_LIBRARY_PATH=/opt/python2.7.1/lib:$LD_LIBRARY_PATH
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can someone explain why this script throws an exception? $byteArray = @(1,2,3) write-Output (
I want to output the score of documents. The code I write for this
Hey I wrote this to grab get a FB page feed and output it
Why does this output a 0 byte file? <?php $jsonurl = http://do.convertapi.com/Web2Pdf/json/?curl=http://stackoverflow.com/; $json =
There is this output of objdump on some object file: $ objdump -h main.o
I have this output when trying to debug Program received signal SIGSEGV, Segmentation fault
I have different php output in jQuery-based tabs. This output is formed from database
any idea how i can get the code below to produce this output? 1
Suppose there is a System A which gives some output. This output is used
Why when use Youtube-dl on linux ubuntu server many link generate this output? [youtube]

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.