python - Pycryptodome: ImportError: DLL load failed while importing _AES: %1 is not an valid Win32 application
问题描述
当我尝试导入 Pycryptodome 时遇到了这个问题。
Traceback (most recent call last): File "C:\Users\me\Documents\Python\Python 3.8\file.pyw", line 17, in <module> from Crypto.Cipher import AES File "C:\Users\me\AppData\Local\Programs\Python\Python38\lib\site-packages\pycrypto-2.6.1py3.8-win-amd64.egg\Crypto\Cipher\AES.py", line 50, in <module> from Crypto.Cipher import _AES
接着:
ImportError: DLL load failed while importing _AES: %1 is not a valid Win32 application.
我正在使用带有 Python 64 位 3.8.7 的 Windows 64 位。我用pip install pycryptodome
. 但是当我尝试从 Pycryptodome 导入 AES 时,它会出现上述错误。谁能告诉我如何解决它?仅供参考,这是我在 Stack Overflow 上的第一篇文章,所以如果该帖子缺少任何内容,请告诉我。谢谢!
解决方案
哦,我傻了,需要安装 pycryptodome 3.8.2。愚蠢的错误哈哈。
推荐阅读
- java - 我如何序列化和反序列化前缀树?
- python - 我正在尝试使用 unittest 在我的烧瓶应用程序中测试我的表单,我做对了吗?
- pandas - 我遇到了一个包含数据帧的循环的问题
- ios - 如何在访问相机时检查图像为零并在相机上按取消
- batch-file - WinSCP 脚本:系统找不到指定的路径
- android - Firebase 助手未在 Android Studio 3.4.1 中显示
- c - int 变量在“while”循环后变为 1
- node.js - 如何使用 JavaScript 将值插入到 select 语句中,特别是在使用 express 和 postgres 时?
- karate - 如何在 karate-config.js 文件中定义代理设置?
- r - 我如何在小时和分钟位于不同列中的时间使用指标