- #Install python on mac brew or webside how to#
- #Install python on mac brew or webside install#
- #Install python on mac brew or webside pro#
#Install python on mac brew or webside install#
If all else fails, install homebrew and install it through that package manager. And, if you are following that link you posted, word for word, make sure you are using the most recent versions of those packages and not the literal versions as that link is 3 years old. Not sure why you are getting an old arch.Īlso, make sure you have the latest Xcode installed. Chances are you might need to set export ARCHFLAGS="-arch i386 -arch x86_64" in your shell before building, in order to avoid it building with ppc. This right here is an indication that you are building it improperly: /Developer/usr/bin/./lib/gcc/powerpc-apple-darwin10, unless of course you are on an old powerpc machine.Ĭheck the version of OSX you are running, and the commands you are using to build lxml. Or this, will work $ sudo env ARCHFLAGS="-arch i386 -arch x86_64" easy_install-2.6 lxml $ sudo /usr/bin/python2.6 setup.py install Then, either this $ export ARCHFLAGS="-arch i386 -arch x86_64" Installed gcc from link, since I was still facing issues with option 1 and 2 suggested
I read on someother post and tried this as well STATIC_DEPS=true sudo easy_install -allow-hosts=,*. lxmlĪs suggested I did the following $ brew install -use-llvm libxml2 python setup.py build -static-deps -libxml2-version=2.7.8 -libxslt-version=1.1.26 I'd args with replaced with the latest version while trying the commands in the link above.
#Install python on mac brew or webside pro#
I searched a lot online but cant find solution for this.ĮDIT: I'm on OSX 10.7 on macbook pro 2010, and have XCode 4 and 3 installed
I tried setting up for python 2.6 and 2.7 environments using setuptools-0.6c11-py2.6.egg and setuptools-0.6c11-py2.7.egg but getting the same output. I'm getting similar syntax errors when I try to install pycrypto as well. Lipo: can't figure out the architecture type of: /var/folders/f3/2q2x2p015kzgd4nbrn_qwykh0000gn/T//cc1pnrww.outĮrror: command 'gcc-4.0' failed with exit status 1 src/lxml/:165645: error: syntax error before ‘val’ Src/lxml/:165645: error: syntax error before ‘val’īla bla. Src/lxml/:165640: error: syntax error before ‘val’ usr/include/sys/_types.h:94: error: syntax error before ‘_darwin_blkcnt_t’ In file included from /usr/include/_types.h:27, usr/include/machine/_types.h:36:2: error: #error architecture not supported In file included from /usr/include/sys/_types.h:33,įrom /Library/Frameworks/amework/Versions/2.6/include/python2.6/Python.h:33, usr/include/machine/limits.h:10:2: error: #error architecture not supported In file included from /usr/include/limits.h:64, usr/include/sys/cdefs.h:540:4: error: #error Unknown architecture In file included from /usr/include/limits.h:63,įrom /Developer/usr/bin/./lib/gcc/powerpc-apple-darwin10/4.0.1/include/limits.h:10,įrom /Library/Frameworks/amework/Versions/2.6/include/python2.6/Python.h:19, Using build configuration of libxslt 1.1.24 Python Program To Calculate Simple Interest (SimpleInterest.I'm trying to install lxml and pycrypto modules using easy_install (and pip) but getting error messages like Running lxml-2.3.4/setup.py -q bdist_egg -dist-dir /tmp/easy_install-kGsWMh/lxml-2.3.4/egg-dist-tmp-Gjq圓f.