AK1992
AK1992

Reputation: 211

ImportError: No module named Crypto

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?

Upvotes: 20

Views: 75570

Answers (4)

caot
caot

Reputation: 3318

pip install pycryptodome

It can fix the follows:

ImportError: cannot import name 'Padding' from 'Crypto.Util'

Upvotes: 7

Solved when i installed pycrypto rather then crypto pip2 install pycrypto

Upvotes: 1

Hariprakash Sambath
Hariprakash Sambath

Reputation: 169

Solution:

By installing pycrypto module from your virtualenv

pip install pycrypto

Upvotes: 2

user1801517
user1801517

Reputation:

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

Upvotes: 12

Related Questions