proycon / LaMachine

LaMachine - A software distribution of our in-house as well as some 3rd party NLP software - Virtual Machine, Docker, or local compilation/installation script
https://proycon.github.io/LaMachine
GNU General Public License v3.0
68 stars 20 forks source link

error installing pycrypto on macOS 12.2 #213

Closed antalvdb closed 2 years ago

antalvdb commented 2 years ago

lamachine-stable-20220130_165658.log

The key error that is reported is: src/_fastmath.c:36:11: fatal error: 'gmp.h' file not found

include

            ^~~~~~~
  1 error generated.
  error: command '/usr/bin/clang' failed with exit code 1
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure

proycon commented 2 years ago

You reported something similar in 2018 and found the solution at the time: #130 ... That probably works again?

antalvdb commented 2 years ago

It does;

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

awkwardly does the trick on my machine. Thanks for the memory jog.