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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:48:32+00:00 2026-05-29T08:48:32+00:00

I have two versions of python installed on my mac running OSX Lion. The

  • 0

I have two versions of python installed on my mac running OSX Lion. The first is the default python version that ships with OSX and is found in /usr/bin/python. The version I want to use is the version I downloaded from python.org, and that is installed in /Library/Frameworks/Python.framework/Versions/2.7/bin/python. I want to use Eclipse and PyDev using the python.org version as the interpreter. So, in Eclipse, I go to preferences and set the version installed in /Library/Frameworks/Python.framework/Versions/2.7/bin/python to be the interpreter.

in a terminal window, if I type:
$ which python

I get “/Library/Frameworks/Python.framework/Versions/2.7/bin/python” because I set my $PATH accordingly (modified .bash_profile to permanently do so)

but if I run the following simple script in Eclipse:

import os
os.system("which python")

the script’s output is “/usr/bin/python”

Things I have tried as suggested by other similar posts:

  1. tried removing and re-adding the interpreter location
  2. tried adding the /Library/…/package-sites to PYTHONPATH

Why isn’t eclipse using the interpreter I explicitly tell it to use? Any help with this issue will be greatly appreciated!

  • 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-05-29T08:48:33+00:00Added an answer on May 29, 2026 at 8:48 am

    The problem is that os.system(‘which python’) will search for the python in the path, not the one where you’re currently running (so, its output is correct).

    What you want to use/check instead is sys.executable (this attribute will point to your currently running executable).

    As for the wxPython issue, which error are you having? (probably another question in stackoverflow thought).

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

Sidebar

Related Questions

I have installed two different python versions (3.1 and 2,7) And this is now
I have two versions of python on my mac: One preinstalled by Apple in
I have two versions of python installed on Win7. (Python 2.5 and Python 2.7).
I have written a Python module, and I have two versions: a pure Python
I have two versions of rails (2.1.0 and 2.2.2) installed in my computer. When
I have some servers of varying age here that are running varying versions of
I have two python versions: Python 2.5 and Python 2.7. When I'm setting up
I am new to django. I have version 1.3.1 installed. I have created two
I am running OS X Lion (started on Leopard, and have gone through two
We have two versions of a managed C++ assembly, one for x86 and one

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.