ModuleNotFoundError: No module named 'Crypto'

+2 votes

Hi. I am trying to run this line in python.

from Crypto.Cipher import AES

But I am getting this error

ModuleNotFoundError: No module named 'Crypto'

I tried installing the module using

pip install crypto

It was successful but when I ran the code, I still get the same error

Aug 20, 2019 in Python by Rishi
13,466 views

1 answer to this question.

+1 vote

The module you’ve installed is different.

To install the module that you are tying to use, run the following code:

pip install pycryptodome
answered Aug 20, 2019 by Raman
Cool, thanks for you help.

I can solve.
Thanks a lot.

Related Questions In Python

+1 vote
2 answers

Not able to install speech_recognition in python: ModuleNotFoundError: No module named 'speech_recognition'

Hey. You have to use SpeechRecognition as module ...READ MORE

answered Nov 28, 2018 in Python by Omkar
• 69,040 points
7,748 views
0 votes
1 answer

Python: ImportError: No module named Crypto.Cipher

Seems like the pycrypto package is not ...READ MORE

answered Jul 31, 2019 in Python by Hari
9,535 views
+1 vote
1 answer

ModuleNotFoundError: No module named 'cv2'

Hi@akhtar, This error may occur if you didn't install ...READ MORE

answered Apr 9 in Python by MD
• 21,340 points
1,454 views
0 votes
1 answer

ModuleNotFoundError: No module named 'pythoncom' in pyttsx3

Hey, @ Ashmit, Please try:   engine = pyttsx3.init('dummy') or ...READ MORE

answered Apr 15 in Python by Gitika
• 28,810 points
889 views
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 929 views
0 votes
0 answers
+4 votes
6 answers
0 votes
1 answer

No module named urllib3

It is possible that either urllib3 is ...READ MORE

answered Jan 24, 2019 in Python by SDeb
• 13,250 points
3,253 views
0 votes
1 answer

No module named __future__

In your /PATH/Python-2.7.x/Lib should be all your ...READ MORE

answered Mar 7, 2019 in Python by SDeb
• 13,250 points
704 views