# 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
安装成功!