python3 下面安装pycrypto时,出现
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/
1、安装了VC++ 14.0 https://www.microsoft.com/zh-cn/download/confirmation.aspx?id=48145
依然不行
2、从https://pypi.org/project/pycrypto/2.4.1/#files 下载了pycrypto ,直接pip install setup.py,
依然不行
3、最后安装V2XE上的说法,成功解决:
pip install pycryptodome
另外,备注:
Visual Studio 2013 —> 12
Visual Studio 2015 —> 14
Visual Studio 2017 —> 15