Quantcast

Got Homework?

Connect with other students for help. It's a free community.

  • across
    MIT Grad Student
    Online now
  • laura*
    Helped 1,000 students
    Online now
  • Hero
    College Math Guru
    Online now

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

maskmethod Group Title

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?

  • 2 years ago
  • 2 years ago

  • This Question is Closed
  1. msmithhnova Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    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.

    • 2 years ago
  2. MOOC-E Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    Please do report back to the group in case others have the same issue.

    • 2 years ago
  3. maskmethod Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    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.

    • 2 years ago
  4. MOOC-E Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    Thanks. Super helpful.

    • 2 years ago
  5. msmithhnova Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    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.

    • 2 years ago
  6. maskmethod Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    Thank you for pointing me in the right direction.

    • 2 years ago
  7. lollya3 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    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.

    • 2 years ago
  8. maskmethod Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    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.

    • 2 years ago
  9. estudier Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    http://www.python.org/dev/peps/pep-0397/ (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).

    • 2 years ago
  10. maskmethod Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    Word!

    • 2 years ago
  11. lollya3 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    Thanks but I was under the impression that I needed to run 2.6.6 for this course, not 2.7.2....my 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!

    • 2 years ago
  12. MOOC-E Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    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.

    • 2 years ago
  13. estudier Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    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?)

    • 2 years ago
  14. lollya3 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    Ok sorry. Terminal opens both versions of Python. IDLE only will open 3.2.3 no matter what I do.

    • 2 years ago
  15. lollya3 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    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)

    • 2 years ago
  16. maskmethod Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    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.*

    • 2 years ago
  17. rsmith6559 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    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/idle.py & exit 0

    • 2 years ago
  18. maskmethod Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    To rsmith6559: Thank you. What file extension do you save this with?

    • 2 years ago
  19. dhwoodward Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    I think .py

    • 2 years ago
  20. rsmith6559 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    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.

    • 2 years ago
    • Attachments:

See more questions >>>

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.