Python AES导入错误请

桑吉特耶拿

我在加密内部的密码中有AES(Python27 \ Lib \ Crypto \ Cipher \ AES模块)

当我尝试import AES从Crypto.Cipher接收import AES到以下错误时:

Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    from Crypto.Cipher import AES
  File "C:\Python27\lib\Crypto\Cipher\AES.py", line 50, in <module>
    from Crypto.Cipher import _AES
ImportError: cannot import name _AES

但是我可以import像其他模块一样from Crypto.Cipher import blockalgo正常工作。所以我猜测AES模块中有一些错误?

亚历山大卢卡宁13

最有可能的是,您的PyCrypto安装已损坏,并且_AES.dll丢失。

尝试根据以下问题重新安装它:如何在Windows上安装PyCrypto?

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章