ImportError: No module named Crypto

2020-08-09 08:05发布

问题:

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?

回答1:

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



回答2:

Solution:

By installing pycrypto module from your virtualenv

pip install pycrypto


回答3:

Solved when i installed pycrypto rather then crypto pip2 install pycrypto