Pycrypto install fatal error: gmp.h file not found

前端 未结 5 1332
抹茶落季
抹茶落季 2021-01-31 07:43

It seems like there are a number of people who have had a similar problem, however, after much searching I haven\'t been able to find a solution that works with my particular ar

5条回答
  •  不思量自难忘°
    2021-01-31 08:41

    Simply linking gmppylib is not helpful because pycrpto needs to compile some C files which will include gmp.h. You should have the GMP library installed which will contain gmp.h. It seems you have to install GMP on your Mac OS. The following two links should be helpful to you.

    • Installation of gmp and mpfr on Mac OS X
    • Installing GMP on MacOS X with Xcode

提交回复
热议问题