I’m trying to use the AES module from the Crypto.Cipher package in Python, but I’m encountering an import error.
when I try to import it using the following statement:
from Crypto.Cipher import AES
I’m getting the following error message:
ModuleNotFoundError: No module named 'Crypto'
I’ve installed the pycryptodome library using pip.
I’ve verified that both pycryptodome and Crypto modules are installed by running pip list command.
I’ve also checked the PATH environment variable to ensure that the directory containing the Crypto module is included.
Rana Kara is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.