pip install places pycrypto in lowercase 'crypto' on windows. #156
Comments
|
From the look of things the pycrypto module is not installed on your system. Try this https://luiscberrocal.wordpress.com/2012/07/18/installing-and-using-pycrypto-on-windows-7/ or Alternatively open your windows command prompt and set python path first as follows: set path=%path%;C:\python27 Then on your pycrypto folder hold shift and right click , it will take you to pycrypto file directory in windows command prompt Then type this command again: Python setup.py install |
|
No, it is installed. I verified it exists in site-packages, and like I said, renaming crypto to Crypto solved the issue. I actually think the issue is the following:
I can verify tonight if this is the case. If so, then I think it's a |
|
This just occurred to me today. Thanks for posting your solution. |
|
under lib/site-packages rename crypto folder to Crypto |
|
Can confirm, this is a bug. |
|
This is a bug. It is only imported as 'crypto', but it is imported as Crypto in the library's files. |
|
I ever submitted this issue before, but it was closed by someone... |
|
Sounds like this project is dead |
|
@mike-bailey yep , the latest release was on four years ago |
|
You can use pycryptodome, which is a fork of pycrypto and is actively developed. However the same problem exists with this package. Renaming works |
|
Dupe of #285 |
|
This has been a real problem for us and very happy to have found this git issue. Any bug fix ETA? |
|
pip uninstall crypto Rename Folder "crypto" to "Crypto" [C:\Users\AppData\Local\Programs\Python\Python37\Lib\site-packages] Then You Use "from Crypto.Cipher import AES" in Code |
|
Thank you, @avrajsri |
|
This is an issue on macOS, too, which may also be case-insensitive. |
Windows XP SP4, Python 2.7
python -m pip install pycryptosucceeds after installing the compiler, but it fails to load:Notice 'crypto' in site-packages is lowercase? Renaming it to 'Crypto' seems to solve the issue.
The text was updated successfully, but these errors were encountered: