0

Hi
I got this error
ImportError: No module named Crypto.Cipher
Where can I find the module for windows and debian linux?
How can I fix error both in windows and Linux?

importerror no module named crypto.cipher windows
Traceback (most recent call last):
  File "C:\Users\Win/\Desktop\client.py", line 2, in <module>
    from Crypto.Cipher import AES
ImportError: No module named Crypto.Cipher
>>>

Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> from Crypto.Cipher import AES
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named Crypto.Cipher
>>>

Edited by tony75

2
Contributors
2
Replies
84
Views
2 Years
Discussion Span
Last Post by tony75
2

I'm using kubuntu, but it should work in debian: make sure you have the development packages for python (python-dev and libpython-dev):

sudo aptitude search python-dev
# then may be
sudo aptitude install python-dev
sudo aptitude install libpython-dev
sudo aptitude install python-setuptools
sudo aptitude install python-pip

Then

sudo pip install pycrypto

should work.

There are windows binaries here but there are reported to be incomplete here. Make sure you visit this page.

Edited by Gribouillis

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.