El Captainでmacportsでinstallしたpython3.4上でpycryptoのinstallに失敗する場合
pip install pycrypto
最終的に以下のようなエラー
File "/private/var/folders/b7/2rk7xp2d0hb2r21zbzjwxb_m0000gn/T/pip-build-ou9ql5i7/pycrypto/setup.py", line 278, in run raise RuntimeError("autoconf error") RuntimeError: autoconf error
もう少し上の方のログを見てみるとc compilerが見つけられないとのこと
checking whether the C compiler works... no configure: error: in `/private/var/folders/b7/2rk7xp2d0hb2r21zbzjwxb_m0000gn/T/pip-build-ou9ql5i7/pycrypto': configure: error: C compiler cannot create executables
以下の様にするとインストールできる
CC=clang pip install pycrypto