The fastest way to solve the problem of error reporting from crypto.cipher import AES

In my personal development process, I need to use the encryption method, but in the process of quoting from crypto.cipher import AES, it has been reported that the crypto module does not exist. Baidu finally found a solution after a few days

 

I use Python 3.9

1、 First perform the following 2 steps

1.pip   install crypto

2.pip   install pycryptohome

2、 After the installation is completed, you can use it directly or prompt that it cannot be found:

1. Change crypto to uppercase

 

So far, the problem has been solved

 

Read More: