I am currently trying to install pycrypto and when I execute python setup.py build I receive this following error:
cc -bundle -undefined dynamic_lookup -arch
On Yosemite:
CC=clang sudo -E pip install pycrypto
This works on Mojave and is better IMO than the other presented options:
brew install gmp
CFLAGS=-I/usr/local/include \
LDFLAGS=-L/usr/local/Cellar/gmp/6.1.2_2/lib \
pip install pycrypto
This worked for me. (Should work if you are on Xcode 5.1)
ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install pycrypto
For those of you also looking to install pycrypto as well as the cryptography package, this is the command that ended up working for me:
env ARCHFLAGS="-arch x86_64" LDFLAGS="-L/usr/local/opt/openssl/lib" CFLAGS="-I/usr/local/opt/openssl/include" pip install cryptography
on El Capitan I just did this ...
sudo easy_install livestreamer
sudo easy_install PyCrypto
et voila... I can now save streams to my HDD.
This is the only thing that worked for me on Mac/El Capitan:
sudo easy_install -U livestreamer