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?
You have to install crypto package. https://pypi.python.org/pypi/pycrypto
pip install pycryptodome
It can fix the follows:
ImportError: cannot import name 'Padding' from 'Crypto.Util'
Solution:
By installing pycrypto module from your virtualenv
pip install pycrypto
Solved when i installed pycrypto rather then crypto pip2 install pycrypto
pip2 install pycrypto
You have to install crypto package. https://pypi.python.org/pypi/pycrypto