windows 系统 pip安装库时,出现Failed building wheel for cryptography 报错解决方案

# windows 系统 pip安装库时,出现Failed building wheel for cryptography 报错解决方案

  
  
  • 1

前言

“easy_install pyOpenSSL”时,出现报错“Failed building wheel for cryptography”,已解决,如有错误,请纠正,万分感谢

1.安装pyOpenSSL

命令行下 easy_install pyOpenSSL 就能安装,如果不能正常安装下载pyOpenSSL安装 :https://pypi.python.org/pypi/pyOpenSSL

在这里插入图片描述

 =============================DEBUG ASSISTANCE=============================
  error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
  Failed building wheel for cryptography
  Running setup.py clean for cryptography
Failed to build cryptography
Could not build wheels for cryptography which use PEP 517 and cannot be installed directly

  
  
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7

此时我的pip版本可用pip --version或者pip -V查看。

根据报错提示执行: pip install pep517 依然报错

2.尝试通过命令 pip install -U pip

在这里插入图片描述
依然报错!

3.执行:easy_install -U pip

在这里插入图片描述
在这里插入图片描述
pip 更新成功!

4.执行 pip install cryptography 安装成功

在这里插入图片描述

5.执行最初我要安装的包

pip install pyOpenSSL-20.0.1-py2.py3-none-any.whl

  
  
  • 1

在这里插入图片描述
安装成功!

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值