Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (19.9k points)

I am getting error while importing 

from Crypto.Cipher import AES 

Please help to resolve this.

Traceback (most recent call last):

File "test.py", line 2, in 

from Crypto.Cipher import AES

ImportError: No module named Crypto.Cipher

1 Answer

0 votes
by (25.1k points)

If you look closely, the error says that no module of name Crypto.Cipher, it seems that you have not installed pycrypto. Run this command:

pip install pycrypto

If you are using linux then add sudo at the beginning of the command. It will install pycrypto in your system for you to use.

You can refer to our Python online course for more information.

Related questions

0 votes
1 answer
0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers!

30.5k questions

32.6k answers

500 comments

108k users

Browse Categories

...