Importerror: No Module Named Crypto.Cipher

ImportError: No module named Crypto.Cipher

I had the same problem (though on Linux). The solution was quite simple - add:

libraries:
- name: pycrypto
version: "2.6"

to my app.yaml file. Since this worked correctly in the past, I assume this is a new requirement.

ModuleNotFoundError: No module named 'Crypto' Error

>> pip install pycryptodome

from Crypto.Cipher import AES #Works

or

>> pip install pycryptodomex
from Cryptodome.Cipher import AES

For python3 the package name is now pycryptodome or pycryptodomex

If you need compatibility with your project with Python2 use pycryptodome or else use pycryptodomex which is a library independent of the old PyCrypto.

ModuleNotFoundError: No module named 'Crypto', Python 3.9, PyCharm

I followed @madzohan link.

  • uninstall crypto. I had installed this because I followed PyCharm's suggestion.
  • uninstall pycryptodome
  • re-install pycryptodome

I was able to run my script no problem.

I have a ModuleNotFoundError: No module named 'Crypto'

Finally Worked, I tried installing pycryptodome using the command py -m pip install pycryptodome instead of pip install pycryptodome. This happens because py is the Python launcher.

ImportError: No module named 'Crypto'

I am assuming that your "python box" is a remote computer.

First, make sure pycrypto is up to date (pip3 install --upgrade pycrypto). The older versions may not be compatible with python 3.3

If that doesn't work, try looking in site-packages (the directory) to make sure the functions actually exist.

If none of that works, it might be easier (just a suggestion) to use from future import the things you need. That way it is python 2&3 compatible.

Getting ModuleNotFoundError: No module named 'Crypto'

This should resolve your issue:

pip install pycryptodome


Related Topics



Leave a reply



Submit