且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

导入错误:没有模块名为cryptography.hazmat.bindings._openssl

更新时间:2021-08-22 17:41:21

这答案可能看起来有点扯,但,这是什么工作了我。其实,我重新安装了操作系统。这样,它删除了所有我刚才安装的其他库。其中一个库可能是罪魁祸首,这与加密文件和OpenSSL干扰。我无法追溯哪个模块/库导致提到的错误。
一旦OS被重新安装,我接着安装cyptography,OpenSSL的使用你可能会进入这个错误之前已经做了链接。

This answer may look lame, but this is what worked out for me. I actually reinstalled the os. That way it removed all the other libraries which i earlier installed. One of those libraries might be the culprit, that interferes with the cryptography files and openssl. I was unable to trace back which module/library is causing the mentioned errors. Once OS was reinstalled, i went on to install cyptography, openssl using the links you probably would have done before coming into this error.

你通过我的方式之前,请确保该six.py有版本1.9.0两个/Library/Python/2.7/site-packages和/System/Library/Frameworks/Python.framework/Versions/2.7/其他/ lib中/ Python的

Before you go through my way, make sure the six.py has the version 1.9.0 in both /Library/Python/2.7/site-packages and /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python

即使你通过我的方式,做到以上也。

Even if you go through my way, do the above also.

我是如此绝望,我重新安装操作系统。我来到这个决定,是因为在同一code,它是在生产工作,同时它不上开发工作。我理解了一些相关性错误。

I was so desperate that i reinstalled the os. I came to this decision because the same code that is in production works while it doesnt work on dev. I understood its some dependency error.