ModuleNotFoundError:没有名为“加密”的模块错误

跟腱59

我已经在python 3.6.5上安装了pycryptodomex模块,但是当我尝试执行以下调用时,出现标题中提到的错误

from Crypto.Cipher import AES

我想使用AES加密文件。现在该如何进行?

努尔·贾弗里
>> pip install pycryptodome

from Crypto.Cipher import AES  #Works

要么

>> pip install pycryptodomex
from Cryptodome.Cipher import AES 

对于python3,软件包名称现在为pycryptodomepycryptodomex

如果你需要与你的项目的兼容性Python2使用pycryptodome或者使用pycryptodomex这是老PyCrypto库独立。

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

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

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

正在获取ModuleNotFoundError:没有名为“加密”的模块

错误:ModuleNotFoundError:没有名为“email.FeedParser”的模块

ModuleNotFoundError:没有名为错误python 3.8.2的模块

uwsgi错误-ModuleNotFoundError:没有名为“编码”的模块?

错误:ModuleNotFoundError:没有名为“ xlwt”的模块

传递导入错误:ModuleNotFoundError:没有名为“ ...”的模块

ModuleNotFoundError:没有名为“ apt_pkg”的模块错误

错误:ModuleNotFoundError:没有名为“ requests”的模块

Python错误:ModuleNotFoundError:没有名为“ <moduleName>”的模块

错误:ModuleNotFoundError:没有名为“pyqtgraph”的模块?

Colab错误:ModuleNotFoundError:没有名为“ geopandas”的模块

Databricks 错误:ModuleNotFoundError:没有名为“sqlalchemy”的模块

介子构建错误“ModuleNotFoundError:没有名为‘mesonbuild’的模块”

Pip 错误:ModuleNotFoundError:没有名为“pip”的模块

ModuleNotFoundError:没有名为“ knox”的模块

ModuleNotFoundError:没有名为“项目”的模块

ModuleNotFoundError:没有名为“ camelcase”的模块

ModuleNotFoundError: 没有名为“model”的模块

ModuleNotFoundError: 没有名为“src”的模块

ModuleNotFoundError:没有名为“dbutils”的模块

ModuleNotFoundError:没有名为“ fastai”的模块

ModuleNotFoundError:没有名为“dmidecode”的模块

ModuleNotFoundError: 没有名为“tensorboard”的模块

ModuleNotFoundError:没有名为“ pynput”的模块

ModuleNotFoundError:没有名为“ jieba”的模块

ModuleNotFoundError:没有名为“ buildozer”的模块

ModuleNotFoundError:没有名为“模型”的模块

ModuleNotFoundError:没有名为“ matplotlib”的模块

ModuleNotFoundError: 没有名为“bootstrapform”的模块