微慑信息网

pip3 install pycrypto问题处理

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
本文标题:pip3 install pycrypto问题处理
本文链接:
(转载请附上本文链接)
https://vulsee.com/archives/vulsee_2019/1014_9064.html
转载请附本站链接,未经允许不得转载,,谢谢:微慑信息网-VulSee.com » pip3 install pycrypto问题处理
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

微慑信息网 专注工匠精神

访问我们联系我们