I tried installing lxml on Mac OSX Snowleopard and keep getting the error:
lipo: can\'t figure out the architecture type of: /var/folders/
I di
I was having the same issue while trying to install milk with Python 2.7. I was not able to get my problem solved with Ali Elouafiq's exact answer, but I was able to get milk installed using the systems Python 2.6.
So perhaps trying other versions of Python until in case it works is a cost effective approach.
I found that compilation issues like these are easily avoided by installing python via brew. If brew isn't able to link the formula, just force it with:
brew link --overwrite python
See also: http://docs.python-guide.org/en/latest/starting/install/osx/
you have an architecture problem for your python, Because of changes in Xcode 4 (dropping of support for the 10.4u SDK and gcc-4.0) it is not practical to build C extension modules with that Python on 10.7 Lion. Either use the Apple-supplied Python 2.7
/usr/bin/python2.7
Install the Python 2.7.3 Mac OS X 64-bit/32-bit x86-64/i386 Installer