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
Is It Still Necessary to Install Cuda Before Using the Conda Tensorflow-Gpu Package
Python Attributeerror: 'Module' Object Has No Attribute 'Serial'
How to Implement _Getattribute_ Without an Infinite Recursion Error
Python Datetime Object Show Wrong Timezone Offset
How to Set Default Python Version to Python3 in Ubuntu
Stop/Start/Pause in Python Matplotlib Animation
Is There a "Not Equal" Operator in Python
Shuffling/Permutating a Dataframe in Pandas
It Is More Efficient to Use If-Return-Return or If-Else-Return
Failed to Catch Syntax Error Python
What Exactly Is Contained Within a Obj._Closure_
What Does "Bound Method" Error Mean When I Call a Function
Underscore VS Double Underscore with Variables and Methods
How to Join Two Wav Files Using Python
Get Raw Post Body in Python Flask Regardless of Content-Type Header