The python3.6 pip version I use
is 19.
I encountered the following error when installing pycrypto with pip
error: command 'd:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
Many methods on the Internet have been tried to no avail.
Finally, I found a method and finally passed it.
In my vs directory
D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\
Find the stdint.h file
and copy it to
C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\
under
Then modify
inttypes.h
to be
#include <stdint.h>
changed to
#include "stdint.h"
Then install again, OK, successful past
Welcome to pay attention to the official account, communicate together and make progress together