python3 下面安装pycrypto时,出现python
copying lib\Crypto\Signature\PKCS1_v1_5.py -> build\lib.win-amd64-3.7\Crypto\Signature copying lib\Crypto\Signature\__init__.py -> build\lib.win-amd64-3.7\Crypto\Signature Skipping optional fixer: buffer Skipping optional fixer: idioms Skipping optional fixer: set_literal Skipping optional fixer: ws_comma running build_ext 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": https://visualstudio.microsoft.com/downloads/ copying lib\Crypto\Signature\PKCS1_v1_5.py -> build\lib.win-amd64-3.7\Crypto\Signature copying lib\Crypto\Signature\__init__.py -> build\lib.win-amd64-3.7\Crypto\Signature Skipping optional fixer: buffer Skipping optional fixer: idioms Skipping optional fixer: set_literal Skipping optional fixer: ws_comma running build_ext 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": https://visualstudio.microsoft.com/downloads/
一、安装了VC++ 14.0 https://www.microsoft.com/zh-cn/download/confirmation.aspx?id=48145dom
依然不行ide
二、从https://pypi.org/project/pycrypto/2.4.1/#files 下载了pycrypto ,直接pip install setup.py,ui
依然不行code
三、最后安装V2XE上的说法,成功解决:ip
pip install pycryptodomeget