简体   繁体   English

为什么即使安装了 pycryptodome,我也无法在 python 中导入 Crypto 模块?

[英]Why can't I import the Crypto module in python even with pycryptodome installed?

I have run all commands in the terminal to clear any previous forms of crypto, but after I ran "pip3 install pycryptodome" and it successfully installed, I still cannot import the "Crypto.Cipher" module.我已经在终端中运行了所有命令以清除任何以前的 forms 加密,但是在我运行“pip3 install pycryptodome”并成功安装后,我仍然无法导入“Crypto.Cipher”模块。 Can anyone help?任何人都可以帮忙吗?

You should use:你应该使用:

pip3 uninstall crypto 
pip3 uninstall pycrypto 
pip3 install pycryptodome

All these packages get installed in the same folder so will overwrite files.所有这些软件包都安装在同一个文件夹中,因此会覆盖文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM