【问题标题】:Python Error: ModuleNotFoundError: No module named 'cryptography.hazmat.bindings._constant_time'Python 错误:ModuleNotFoundError:没有名为“cryptography.hazmat.bindings._constant_time”的模块
【发布时间】:2019-07-21 13:41:56
【问题描述】:

我正在尝试运行我过去能够运行的脚本。它因错误而停止:

ModuleNotFoundError: No module named 'cryptography.hazmat.bindings._constant_time'

我最近删除了 python 3.6 并安装了 python ActiveState:

ActivePython 3.6.0.3600 (ActiveState Software Inc.) based on
Python 3.6.0 (default, Jan 23 2017, 20:01:14) [MSC v.1900 64 bit (AMD64)] on win32

到目前为止我尝试过的事情:

重新安装密码学

重新安装密码,但出现错误:

Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\includ
e\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" /Tcbuild\temp.win-amd64
-3.6\Release\_openssl.c /Fobuild\temp.win-amd64-3.6\Release\build\temp.win-amd64-3.6\Release\_openssl.obj
  error: command 'cl.exe' failed: No such file or directory

  ----------------------------------------
  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

任何帮助将不胜感激。我对python还很陌生,但我很茫然

【问题讨论】:

    标签: python-3.x cryptography activestate constant-time


    【解决方案1】:

    看起来今天发布的版本实际上破坏了一些东西;使用 cryptography==2.5 可能会让您克服该错误,直到他们修复 2.6。

    【讨论】:

      猜你喜欢
      • 2020-06-15
      • 2021-10-25
      • 1970-01-01
      • 1970-01-01
      • 2019-10-28
      • 2020-02-13
      • 2015-12-07
      • 2020-07-30
      • 2022-01-13
      相关资源
      最近更新 更多