How to update a python package?

How do I change the build path for the Mac OS X default Python package?

  • OSX 10.6 When you type "python" into terminal, it chooses this package, how would one change this?

  • Answer:

    Your best bet is to do an alternate install of Python so that both versions can function together. You can reference either version in your python scripts this way. As far as changing where 'python' points to when you run it from a terminal... there are a few options.. Symlinks, Aliases, etc. The way that I prefer to do it (so I can easily change where it points on the fly) is to edit my bash profile to add an additional alias. For example... You can type sudo pico /etc/profile (or any text editor with admin permissions) Then you can add alias python='path/to/python' wherever you want to Just save & restart your bash shell (just close/re-open terminal) and you should be right as rain! This might not be the best method of accomplishing what you are looking for but it is how I roll. If you have any questions regarding alternate python installs or more about this let me know. Cheers!

Adam Gray at Quora Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.