ImportError: No module named Crypto

51,621

Solution 1

pip install pycryptodome

It can fix the follows:

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

Solution 2

Solution:

By installing pycrypto module from your virtualenv

pip install pycrypto

Solution 3

Solved when i installed pycrypto rather then crypto pip2 install pycrypto

Share:
51,621
AK1992
Author by

AK1992

Updated on November 24, 2020

Comments

  • AK1992
    AK1992 over 3 years

    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?