Pycrypto install fatal error: gmp.h file not found

If you use Homebrew, this should do the trick:

brew install gmp
env "CFLAGS=-I/usr/local/include -L/usr/local/lib" pip install pycrypto

Using env will only make it work for that invocation. If you need to install pycrypto at a later time in this session export the variable instead.

export "CFLAGS=-I/usr/local/include -L/usr/local/lib" 
pip install pycrypto

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)