Pycrypto install fatal error: gmp.h file not found

前端 未结 5 1340
抹茶落季
抹茶落季 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:44

    I finally realized that the root of my problem was in an incompatibility between the versions of Fabric and Pycrypto. Once I downgraded my version of Fabric to 1.2.6, I no longer got the errors above. Then, I used the tutorial as a jumping off point. However, despite the tutorial and the older version of Fabric, I still got the PyCrypto >= 2.1, !=2.4 error. I eventually installed Pycrypto 2.2 from source (since apparently pip will only install v. 2.0.1 even when designating pip -Iv install pycrypto==2.2 per this and v. 2.6 resulted in the gmp.h error). Finally, everything worked.

提交回复
热议问题