Skip to content

Instantly share code, notes, and snippets.

@adamghill
Created January 4, 2014 16:13
Show Gist options
  • Save adamghill/8256928 to your computer and use it in GitHub Desktop.
Save adamghill/8256928 to your computer and use it in GitHub Desktop.
How to handle invalid mach-o architecture error for Python on Snow Leopard OS X. From http://api.mongodb.org/python/current/installation.html#osx.env.
env ARCHFLAGS='-arch i386 -arch x86_64' pip install {PACKAGE_NAME}
e.g. env ARCHFLAGS='-arch i386 -arch x86_64' pip install psycopg2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment