PyCrypto installation error (vc\\cl.exe fails no matter what)

◇◆丶佛笑我妖孽 提交于 2019-12-04 11:50:44

I found the solution : After following the advice of Dave (from comments), I encountered a new error , which I then solved by following this thread Python, installing clarifai --> VS14.0 link.exe failed with exit status 1158

This is the solution provided in this blog post

Edit the file inttypes.h and add just before the line of the error:

#define intmax_t long long
#define uintmax_t unsigned long long

Also, the solution provided in this StackOverflow question by @user1602 seems better, since it doesn't involve changing files in Windows SDK:

A workaround for Microsoft VC compiler is to force include stdint.h via OS environment variable CL:

  1. Open command prompt
  2. Setup VC environment by runing vcvars*.bat (choose file name depending on VC version and architecture)
  3. set CL=-FI"Full-Path\stdint.h" (use real value for Full-Path for the environment)
  4. pip install pycrypto
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!