#on windows cmd : pip uninstall pycrypto pip install pycryptodome #use PyCryptodome instead of pycrypto #pycrypto is discontinued and is no longer actively supported #PyCryptodome exposes almost the same API as pycrypto