Tag Archives: Python3.9 Install pycrypto Error

How to Solve Python3.9 Install pycrypto Error

1. If VS2019 BuildTools and its corresponding VC++14 library are installed on the machine, go directly to C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include Copy the stdint.h file to the C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt directory in the directory (*14.29.30133 is the version number, which may be different depending on the version you installed) ;

2. Modify the C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\inttypes.h file: change the line 14

#include <stdint.h>

Change to

#include "stdint.h"

3. Execute in CMD

set CL=/FI"%VCINSTALLDIR%\\INCLUDE\\stdint.h" %CL%

4. Execute PIP3 install pycrypto or pip install pycrypto to install.