Skip to content

Instantly share code, notes, and snippets.

@btbytes
Created March 7, 2009 23:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save btbytes/75496 to your computer and use it in GitHub Desktop.
Save btbytes/75496 to your computer and use it in GitHub Desktop.
Install Python SIP on Mac OS X

Installing SIP on Mac proved to be a tad difficult with this error message

$ sudo port install py-sip

---> Activating python24 @2.4.6_0+macosx Error: Target org.macports.activate returned: Image error: /opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4 already exists and does not belong to a registered port. Unable to activate port python24.

So, I removed the whole directory:

$sudo rm -rf /opt/local/Library/Frameworks/Python.framework/Versions/2.4/

and then installed py-sip

$sudo port install py-sip

Don't forget to run :

$sudo port install python_select  
$sudo python_select python24

to make 2.4 the default python interpreter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment