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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T05:08:46+00:00 2026-06-12T05:08:46+00:00

On Redhat, python 2.4.3 is installed. On that machine, we have an application that

  • 0

On Redhat, python 2.4.3 is installed. On that machine, we have an application that uses python 2.6 (strange, at least for me).

I understand it this way:
I start a command line from RedHat desktop and type “python”, it says:

Python 2.4.3 (#1, Dec 11 2006, 11:39:03)

Within the application I mentioned above, I can start an xterm, and when I type “python” there, it says:

Python 2.6.5 (r265:79063, Sep 27 2010, 19:19:43)

Now, PYTHONPATH of RedHat and PYTHONPATH of this application is different than each other.

I want to add a new directory to the PYTHONPATH of this application. How can I find where its PYTHONPATH is defined? And how do I add a new directory to this application’s PYTHONPATH?

  • 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-12T05:08:48+00:00Added an answer on June 12, 2026 at 5:08 am

    the application might be running inside some python virtual environment.

    You should focus your research trying to find out which python is being used when you run python. You can do it using the which comamand.

    which python
    

    The both values will be definitely different.

    Now, before adding a new path to the app PYTHONPATH you should ask before why you need it. If you only need a python module it might be better to just install it from pip.

    If you still need to do it you can do it with the python site. Have you look on it has your answer. http://docs.python.org/library/site.html

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

Sidebar

Related Questions

This is my application environment: Redhat 6.0 Apache 2.2 Django 1.3.0 Python 2.6.6 cx_Oracle
Redhat 5.5 gcc version 4.1.2 I have a directory call lib, and in that
I installed Yahoo BOSS (it's a Python installation that allows you to use their
I am the new maintainer for an in-house Python system that uses a set
I'm trying to deploy a small python bottle application to REdHat openshift platform and
I am working on a RHEL system. I have two versions of Python installed
I have installed Python 2.6.6 on CentOS 5.4, [@SC-055 lxml-2.3beta1]$ python Python 2.6.6 (r266:84292,
As RedHat openshift doesn't support Python 2.7, I choose to use Do-It-Yourself (DIY) application.
I have been reading about creating an RPM for Python 2.6.4. In this page:
I'm currently getting the warning every time I run a Python script that uses

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.