首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Python错误: ModuleNotFoundError:没有名为'cryptography.hazmat.bindings._constant_time‘的模块

Python错误: ModuleNotFoundError:没有名为'cryptography.hazmat.bindings._constant_time‘的模块
EN

Stack Overflow用户
提问于 2019-02-28 02:25:57
回答 1查看 3.7K关注 0票数 1

我正在尝试运行一个我过去已经能够运行的脚本。它停止并返回错误:

代码语言:javascript
复制
ModuleNotFoundError: No module named 'cryptography.hazmat.bindings._constant_time'

我最近删除了Python3.6并安装了python ActiveState:

代码语言:javascript
复制
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

到目前为止我已经尝试过的东西:

重新安装加密技术

正在重新安装加密系统,但出现错误:

代码语言:javascript
复制
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是个新手,但我感到困惑。

EN

回答 1

Stack Overflow用户

发布于 2019-02-28 03:14:11

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/54912178

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档