Sometime , when you run a .py file , it occured a bad issue like
1 2 3 4 | Traceback (most recent call last): File "shiro_rememberMe_Rce.py", line 5, in <module> from Crypto.Cipher import AES ImportError: No module named Crypto.Cipher |
For python27 , execute the following command:
1 | pip install pycryptodome |
For python39 , similar problems will occur
1 2 3 4 | Traceback (most recent call last): File "C:\Tool\Shiro\shiro_rememberMe_Rce\shiro_rememberMe_Rce.py", line 5, in <module> from Crypto.Cipher import AES ModuleNotFoundError: No module named 'Crypto' |
The solution is as follows
1 2 | pip3 install crypto pip3 install pycryptodome |
Then, change crypto under Lib\site-packages to Crypto.
When you install pycryptodome, you may encounter “error: Microsoft Visual C++ 14.0 is required.”
You need to install Microsoft Visual C++ 14.0 to install pycrypto , use the link : http://go.microsoft.com/fwlink/?LinkId=691126&fixForIE=.exe.
After installing Microsoft Visual C++ 14.0 , then execute
Everything is fine !