Installing PyCrypto/Paramiko for Python3 x64 Windows



Paramiko is a great Python library for SSH but it can be a hassle to install in Windows. In this situation, I am using Windows 10 64-bit and Python 3.4.3. Paramiko is available on Pip which helps but it is not the smoothest installation.

First, I run in to an issue with the PyCrypto dependency that it tries to install:

error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat)

Read this on how to solve that problem: Fix Pip Install Unable to Find vcvarsall.bat

After getting that done and reinstalling with Pip, it appears to install properly. However, when I try to run Python and import paramiko I get an error about winrandom:

ImportError: No module named 'winrandom'

To fix this, you have to go in the source code for the Crypto lib and fix an import statement. In my case, Python was installed to C:\Python34\. The full path of the file I had to change was:


In that file, change

import winrandom


from . import winrandom

Now you should be able to run python and import paramiko.