When I issue these import commands:
import sys
import cv2
import numpy as np
from Crypto.Cipher import AES
from Crypto.Util.Padding import pad, unpad
from Crypto.Random import get_random_bytes
I see this error message:
File "C:/Users/user/Desktop/image-encryption-main/PyImgEnc.py", line 4, in <module>
from Crypto.Cipher import AES
ModuleNotFoundError: No module named 'Crypto'
These are the libraries I installed:
pip install wheel
pip install scipy
pip install pbkdf2
pip install pyaes
pip install pycryptodome
How can I solve this problem?
Upgrade pip to latest version before executing the commands:
pip uninstall crypto pip uninstall pycryptopip install pycryptodomepip install pycryptodomexThis worked for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With