I tried installing pycurl via pip. it didn\'t work and instead it gives me this error.
running install running build running build_py running build_ext build
I got it working using this
sudo env ARCHFLAGS="-arch x86_64" pip install pycurl