微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

在 Python 中安装 Paramiko 时出现 Bcrypt 错误

如何解决在 Python 中安装 Paramiko 时出现 Bcrypt 错误

我正在尝试使用代码 pip install paramiko 安装 paramiko。它给出了以下与 bcrypt 相关的错误

creating build\temp.win-amd64-3.6
  creating build\temp.win-amd64-3.6\Release
  building '_bcrypt' extension
  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/
  ----------------------------------------
  ERROR: Failed building wheel for bcrypt
ERROR: Could not build wheels for bcrypt which use PEP 517 and cannot be installed directly

也尝试下载 C++ 工具,但错误仍然出现,我无法安装 paramiko。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。