PyCrypto not fully installed on Windows XP
On windows, it may just be easier installing PyCrypto via a prebuilt windows installer. The Voidspace site has PyCrypto 2.1 and 2.3 installers for Python 2.2-2.7.
For other people like me on 64 bit windows 7:
Short version:Follow this instructions.
Long version:
Install VC++ 2008 SP1 Express. you can get it from here.
You also need the Windows SDK, specifically the Win7 + Net 3.5 SDK.
Maybe the issue was already solved in your python version, if not get the diff file from the issue page
download patch.py (or any other tool to patch diff files)
if you downloaded the patch.py and diff file in c:\Python27
just run:
python patch-11.01.py vcvars3.diff
Finally install using pip:
pip install pycrypto
You may use PyPM to install (pre-built binary package of) pycrypto:
C:> pypm install pycryptoReady to perform these actions:The following packages will be installed: pycrypto-2.0.1Get: [pypm.activestate.com] pycrypto 2.0.1-1Installing pycrypto-2.0.1
To list the files installed, type:
C:> pypm files pycryptoC:\Users\sridharr\AppData\Roaming\Python\Python26C:\Users\sridharr\AppData\Roaming\Python\Python26\site-packagesC:\Users\sridharr\AppData\Roaming\Python\Python26\site-packages\CryptoC:\Users\sridharr\AppData\Roaming\Python\Python26\site-packages\Crypto\CipherC:\Users\sridharr\AppData\Roaming\Python\Python26\site-packages\Crypto\Cipher\AES.pydC:\Users\sridharr\AppData\Roaming\Python\Python26\site-packages\Crypto\Cipher\ARC2.pydC:\Users\sridharr\AppData\Roaming\Python\Python26\site-packages\Crypto\Cipher\ARC4.pydC:\Users\sridharr\AppData\Roaming\Python\Python26\site-packages\Crypto\Cipher\Blowfish.pydC:\Users\sridharr\AppData\Roaming\Python\Python26\site-packages\Crypto\Cipher\CAST.pydC:\Users\sridharr\AppData\Roaming\Python\Python26\site-packages\Crypto\Cipher\DES.pydC:\Users\sridharr\AppData\Roaming\Python\Python26\site-packages\Crypto\Cipher\DES3.pydC:\Users\sridharr\AppData\Roaming\Python\Python26\site-packages\Crypto\Cipher\IDEA.pydC:\Users\sridharr\AppData\Roaming\Python\Python26\site-packages\Crypto\Cipher\RC5.pydC:\Users\sridharr\AppData\Roaming\Python\Python26\site-packages\Crypto\Cipher\XOR.pydC:\Users\sridharr\AppData\Roaming\Python\Python26\site-packages\Crypto\Cipher\__init__.pyC:\Users\sridharr\AppData\Roaming\Python\Python26\site-packages\Crypto\HashC:\Users\sridharr\AppData\Roaming\Python\Python26\site-packages\Crypto\Hash\HMAC.pyC:\Users\sridharr\AppData\Roaming\Python\Python26\site-packages\Crypto\Hash\MD2.pydC:\Users\sridharr\AppData\Roaming\Python\Python26\site-packages\Crypto\Hash\MD4.pydC:\Users\sridharr\AppData\Roaming\Python\Python26\site-packages\Crypto\Hash\MD5.pyC:\Users\sridharr\AppData\Roaming\Python\Python26\site-packages\Crypto\Hash\RIPEMD.pydC:\Users\sridharr\AppData\Roaming\Python\Python26\site-packages\Crypto\Hash\SHA.pyC:\Users\sridharr\AppData\Roaming\Python\Python26\site-packages\Crypto\Hash\SHA256.pydC:\Users\sridharr\AppData\Roaming\Python\Python26\site-packages\Crypto\Hash\__init__.pyC:\Users\sridharr\AppData\Roaming\Python\Python26\site-packages\Crypto\ProtocolC:\Users\sridharr\AppData\Roaming\Python\Python26\site-packages\Crypto\Protocol\AllOrNothing.pyC:\Users\sridharr\AppData\Roaming\Python\Python26\site-packages\Crypto\Protocol\Chaffing.pyC:\Users\sridharr\AppData\Roaming\Python\Python26\site-packages\Crypto\Protocol\__init__.pyC:\Users\sridharr\AppData\Roaming\Python\Python26\site-packages\Crypto\PublicKeyC:\Users\sridharr\AppData\Roaming\Python\Python26\site-packages\Crypto\PublicKey\DSA.pyC:\Users\sridharr\AppData\Roaming\Python\Python26\site-packages\Crypto\PublicKey\ElGamal.pyC:\Users\sridharr\AppData\Roaming\Python\Python26\site-packages\Crypto\PublicKey\RSA.pyC:\Users\sridharr\AppData\Roaming\Python\Python26\site-packages\Crypto\PublicKey\__init__.pyC:\Users\sridharr\AppData\Roaming\Python\Python26\site-packages\Crypto\PublicKey\pubkey.pyC:\Users\sridharr\AppData\Roaming\Python\Python26\site-packages\Crypto\PublicKey\qNEW.pyC:\Users\sridharr\AppData\Roaming\Python\Python26\site-packages\Crypto\UtilC:\Users\sridharr\AppData\Roaming\Python\Python26\site-packages\Crypto\Util\RFC1751.pyC:\Users\sridharr\AppData\Roaming\Python\Python26\site-packages\Crypto\Util\__init__.pyC:\Users\sridharr\AppData\Roaming\Python\Python26\site-packages\Crypto\Util\number.pyC:\Users\sridharr\AppData\Roaming\Python\Python26\site-packages\Crypto\Util\randpool.pyC:\Users\sridharr\AppData\Roaming\Python\Python26\site-packages\Crypto\Util\test.pyC:\Users\sridharr\AppData\Roaming\Python\Python26\site-packages\Crypto\__init__.pyC:\Users\sridharr\AppData\Roaming\Python\Python26\site-packages\Crypto\test.pyC:\Users\sridharr\AppData\Roaming\Python\Python26\site-packages\pycrypto-2.0.1-py2.6.egg-info
PyPM can be installed by installing ActivePython.