安装pycrpto
pip install pycrypto
如果出现安装失败:
warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
building 'Crypto.Random.OSRNG.winrandom' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
有现成的轮子,不必麻烦解决这么多复扎的问题
https://github.com/sfbahr/PyCrypto-Wheels