Wednesday, July 15, 2015

Installing netmiko on Windows

Netmiko is a Python module by Kirk Byers that provides a wrapper around the Paramiko SSH module for doing screen scraping and CLI automation on network devices.

Paramiko has some dependencies that make installation on Windows a tad tricky. Here's a quick way to get it done:

  1. Install Anaconda.
  2. From the Anaconda shell, run "conda install paramiko".
  3. From the Anaconda shell, run "pip install scp".
  4. Install git for Windows.
  5. Clone netmiko with "git clone"
  6. cd into the netmiko directory and run "python install".
Done! Screen scrape away, and don't forget to hound your vendors for real APIs... :-)


Anonymous said...

Just what I needed; Thank you.

Koroush said...

Appreciate your help.
I am able to import netmiko in IPython 2.7 & IPython Qtconsole 3.2

do my essay for me said...

Ok it is always good to know something new and this blog is very useful. Thank you for sharing it and keep posting such posts

Man with Van said...

this blog is related how Netmiko module of python can be installed listed with a easy procedure to follow.

Anonymous said...

how to import netmiko in Python 3.6 running in Windows 10.
I have tried all the steps you mentionned but I am still getting this error : "ModuleNotFoundError: No module named 'netmiko' "

Anonymous said...

Don't know if you got it working or not but I just successfully installed netmiko per the instruction. Did you cd to netmiko folder?

Vladimir Orlov said...

had an issue where I had to install MS C++ tools (link to download provided while installation). After that - got error netmiko TypeError: 'Permission Error' object is not subscriptable and fixed it with command "python -m pip install netmiko" from command line

ananthi said...

this is very nice blog.python one of the programming language this is very useful in software development.thanks for giving this informtion.
Base SAS Training in chennai

rose said...

That is very interesting; you are a very skilled blogger. I have shared your website in my social networks! A very nice guide. I will definitely follow these tips. Thank you for sharing such detailed article.

python training in bangalore|

Riz said...

I installed Netmiko, but i get attached error when I try to import it in Python 2.7

Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec 5 2015, 20:40:30) [MSC v.1500 64 bit (
AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import netmiko
Traceback (most recent call last):
File "", line 1, in
File "build\\egg\netmiko\", line 8, in
File "build\\egg\netmiko\", line 4, in
File "build\\egg\netmiko\a10\", line 2, in
File "build\\egg\netmiko\a10\", line 4, in
File "build\\egg\netmiko\", line 3, in

File "build\\egg\netmiko\", line 13, in
File "build\\egg\paramiko\", line 22, in
File "build\\egg\paramiko\", line 33, in
ImportError: No module named cryptography.hazmat.backends

Sadiya Moshin said...

python training in bangalore

eu4 console commands said...

I do have perhaps a stupid question since I am a scripter not a programer. I am receiving an error message...
error: Unable to find vcvarsall.bat
I have done a search and cannot find this file either. I was researching some things and came up with a bunch of info about compiling visual studio. I think? Perhaps you can shed some light on this.