Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I eradicated python 2.6 from my MacBook pro. Of course I did this before realizing iPhoto was dependent on it.

How do I point iPhoto to my newly installed version of Python?

This is the relevant error:

Dyld Error Message:
  Library not loaded: /System/Library/Frameworks/Python.framework/Versions/2.6/Python
  Referenced from: /Applications/
  Reason: image not found

When attempting a symlink to my Python executable, I get the following:

Dyld Error Message:
  Library not loaded: /System/Library/Frameworks/Python.framework/Versions/2.6/Python
  Referenced from: /Applications/
  Reason: no suitable image found.  Did find:
    /System/Library/Frameworks/Python.framework/Versions/2.6/Python: mach-o, but wrong architecture
    /System/Library/Frameworks/Python.framework/Versions/2.6/Python: mach-o, but wrong architecture
share|improve this question
How did you reinstall Python2.6 ? – Matthieu Riegler Dec 18 '13 at 17:49
I didn't reinstall 2.6. I installed the Anaconda distribution and removed all other traces of Python on the system. Anaconda ships with 2.7. – strimp099 Dec 18 '13 at 18:23

The python bin is located in /usr/bin/python

You should try a symlink ln -s /your/path/to/python /usr/bin/python/

share|improve this answer
I already have a link in the bin to the new path. I pasted the relevant error in the original post. – strimp099 Dec 17 '13 at 21:10
Then maybe symlink your new 2.6 Python to /System/Library/Frameworks/Python.framework/Versions/2.6 – Matthieu Riegler Dec 17 '13 at 23:30
Unfortunately that did not work. See OP. – strimp099 Dec 18 '13 at 17:38

What processor do you have in your machine? The error message implies that the binary you are pointing to is either a Universal binary (and it does not expect it) or that it's a PowerPC binary where you have an Intel Mac (or vice-versa).

Use the 'file' command to see what binary you have there. This is what mine looks like (vanilla Mavericks install):

MacBookPro:bin $ file /usr/bin/python
/usr/bin/python: Mach-O universal binary with 2 architectures
/usr/bin/python (for architecture x86_64):  Mach-O 64-bit executable x86_64
/usr/bin/python (for architecture i386):    Mach-O executable i386 that's a Universal binary with Intel 32bit and Intel 64bit inside.

It looks like Anaconda for Mac only has 64bit support:

...if this is the case and you have a 32bit processor, that's the problem.

share|improve this answer

I had this same issue after i uninstalled the version of Python that came with the Mac OS and installed a new version with homebrew. I fixed it by creating a symlink from where iPhoto thought python was suppose to be and where python actually was. Since I installed python with homebrew, the relevant python directory lived here:


I created new /Python.framework/Versions directories in /System/Library/Frameworks/ and then ran this command to create the symlink:

sudo ln -s /usr/local/Cellar/python/2.7.8/Frameworks/Python.framework/Versions/2.7/ /System/Library/Frameworks/Python.framework/Versions/2.6
share|improve this answer

I would reinstall the OS from the boot DVD or recovery partition. This will put the Apple python back. This is the only place where the correct python executable is anywhere else but apple supplied media will have a different python on - e.g. it will have its framework in a different place

I would not use any non apple supplied python for use in Apple tools as APIs and bugs etc could have changed.

It is relatively easy to have more than one version of python (especially if they are different version numbers) on an OSX box.

The usual general comment is not to replace Apple supplied code, leave all this as part of the OS and just install other versions elsewhere

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.