Open study

is now brainly

With Brainly you can:

  • Get homework help from millions of students and moderators
  • Learn how to solve problems with step-by-step explanations
  • Share your knowledge and earn points by helping other students
  • Learn anywhere, anytime with the Brainly app!

A community for students.

I have Python 3.2.2 and Python 2.7.2 installed on OS X. Idle will only open using 3.2.2. Is there any way to alter which version of Python it will open with?

MIT 6.189 A Gentle Introduction to Programming Using Python (OCW)
See more answers at
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Join Brainly to access

this expert answer


To see the expert answer you'll need to create a free account at Brainly

Not overly familiar with OSX as I run Windows but I have python 2.5, 2.7 and 3.2 installed. Each has it's own link for idle and uses the appropriate version. You may need to navigate to the installed dir then Lib\idelib and run idle from there to get it to work. Worth a try.
Please do report back to the group in case others have the same issue.
I did finally drill down to find the library. It was located at '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/'. I used Terminal to open idle.pyc and it seems to work fine. Now I just have to figure out how to write a script so I can have a clickable shortcut.

Not the answer you are looking for?

Search for more explanations.

Ask your own question

Other answers:

Thanks. Super helpful.
Glad you found it. I knew it was under some combination of lib\idelib. That structure is similar to the linux structure. The windows versions also has a idle.bat to run it. I use that on my USB portable version.
Thank you for pointing me in the right direction.
So...I have the same issue, but I need more step by step to solve it. Can someone explain like I'm a 5 year old please? MacBook Pro (Mountain Lion 10.8.2) If I launch IDLE it opens to 3.2.3.
Okay, first thing you want to do is to open Terminal. If you're unfamiliar Terminal is in Launchpad inside the Utilities 'folder'. Once you've opened Terminal you should see something similar to this: Last login: Tue Oct 9 04:30:12 on ttys002 new-host-2:~ drew$ Then type in: 'python /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/idle.pyc' without the quotes and hit return. IDLE should start and in the header it should say that it's using Python 2.7.2. To open IDLE in the future you can just open the Terminal app and hit the 'up' arrow on your keyboard and scroll through the commands until you come to the one above and hit return. I almost forgot, when using this method you must leave the Terminal window you start IDLE in open otherwise when you close the Terminal window you'll close IDLE also. You can minimize it though. Hopefully, this'll get you set. And hopefully I'll find or figure out a more artful solution to this situation. (although I think that if you do not specifically need 3.3 for anything right now, the better option is to uninstall it until you finish the course).
Thanks but I was under the impression that I needed to run 2.6.6 for this course, not IDLE opens to 2.7.2 and will open to 3.2.3 if I type Python3 when the terminal first launches. So the problem seems to be, do I need to create Python 2.6.6 or not? Because that was my impression based on instructions I got for this Mechanical Mooc. Thanks for your help!
The differences between 2.6 and 2.7 do not seem to be significant enough to worry about in terms of the course. The Codecademy exercises are actually written for 2.7.
If u have 2.7.2 already, I'd go with that... (does double clicking a .pyfile run in 2.7.2. or in 3?)
Ok sorry. Terminal opens both versions of Python. IDLE only will open 3.2.3 no matter what I do.
Also, to maskmethod, I appreciate your help. What happens when I follow these directions is that another regular terminal window opens up to 2.7.2. IDLE does not open. (This may be an issue relate to Mountain Lion...when I go to IDLE preferences, IDLE always crashes)
I'm also running Mountain Lion but I also have several versions of Python installed on my Macbook and migrated my install a couple of times so my mileage my vary. Sorry I couldn't be of more service. I would agree with the other posts about the differences between 2.6 and 2.7. About IDLE, I do seem to remember having the same crashing issue while using it with 3.*
This is a script to open idle on my 10.5.8 laptop: cat /usr/bin/idle #!/bin/bash /usr/bin/python /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/idlelib/ & exit 0
To rsmith6559: Thank you. What file extension do you save this with?
I think .py
It's a BASH script. In *nix, you don't need any file extension. The shebang (#!) tells the OS what to do. If set it's permissions to be executable, and save it in a directory that's on your PATH variable, you can just type it's name in Terminal and you're all set.

Not the answer you are looking for?

Search for more explanations.

Ask your own question