1. 所需模块

    pip install openssl
    pip install pycrypto

    pycrypto在Windows下安装可能有坑,需要先安装Microsoft Visual C++ Build Tools:https://visualstudio.microsoft.com/downloads/
    pycrypto报错1
    即使安装了依然可能报错,这时候需要将Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\stdint.h文件拷贝到报错对应的Windows Kits\10\include\10.0.17763.0\ucrt\目录下,并修改inttypes.h文件中的头文件
    将#include <stdint.h>改成#include "stdint.h",再通过pip安装pycrypto即可
    pycrypto报错2