ImportError: No module named Crypto

69k views Asked by At

I am just starting to explore Python. I am trying to run an AES algorithm code and I am facing the:

ImportError: No module named Crypto.

How do you solve this?

4

There are 4 answers

5
AudioBubble On

You have to install crypto package. https://pypi.python.org/pypi/pycrypto

0
caot On

pip install pycryptodome

It can fix the follows:

ImportError: cannot import name 'Padding' from 'Crypto.Util'
0
Hariprakash Sambath On

Solution:

By installing pycrypto module from your virtualenv

pip install pycrypto
0
Nejmeddine Khéchine On

Solved when i installed pycrypto rather then crypto pip2 install pycrypto