python - 没有名为 crypto.cipher 的模块

标签 python python-2.7 encryption

我现在正在尝试加密一段时间。我最近得到了这个基于 python 的密码器,名为 PythonCrypter .

我是 Python 的新手,当我尝试通过终端打开 CodeSection.py 文件时,出现错误提示 from Crypto.Cipher import AES 导入错误:没有名为 Crypto.Cipher 的模块

我做错了什么?

最佳答案

pip uninstall Crypto
pip uninstall pycrypto
pip install pycrypto

这对我有用。

重点是,当你安装pycrypto时,你应该先移除Crypto

关于python - 没有名为 crypto.cipher 的模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31485110/

相关文章:

java - 为什么我在解密时得到 'BadPaddingException'?

python - Django 压缩器抛出字典更新序列元素 #0 的长度为 9;需要 2 个

python - 无法将列表对象传递到模板瓶中

linux - 安装和配置 virtualenv 和 python (Linux)

Python,要 float 的负数字符串

python - 在 python 中使用 AES 生成 ECB 企鹅

security - 加盐和散列可以防止对单个帐户的攻击吗?

python - 正则表达式 python 将原始数据附加到字符串变量

python - 使用 python 将数据复制到 Vertica

Python:自定义JSON解码器的性能