pip install pycryptodome
# for python 3 (could also be pip3.10 depending on your version)
pip3 install pycryptodome
# if you get permissions error
sudo pip3 install pycryptodome
pip install pycryptodome --user
# if you don't have pip in your PATH environment variable
python -m pip install pycryptodome
# for python 3 (could also be pip3.10 depending on your version)
python3 -m pip install pycryptodome
# using py alias (Windows)
py -m pip install pycryptodome
After you install the pycryptodome package, try importing it as follows
from Crypto.Cipher import AES