09-21-2023 07:42 PM
Below is the step-by-step procedure to install python in windows machine and to import paramiko, netmiko packages to python.
Step 1:
Install python on your PC. You can download the latest python software from the below link
https://www.python.org/downloads/windows/
Step 2:
Step 3:
Open new windows command prompt
python -m pip install [packagename]
In some windows versions the below commands work
Pip install paramiko
Step 4:
Go to Python 3.10, Import paramiko, netmiko modules
Step 5:
Check in scripts if you have netmiko module installed
C:\Users\va1046\Documents\Python\software\Python-3.10.10\Scripts
Step 6:
The system is ready to use netmiko packages on python. You can import connecthandler from netmiko in python code to ssh into devices.
from netmiko import ConnectHandler
# create a dictionary with the connection details
devices = {
"device_type": "ruckus_fastiron",
"ip": "10.177.95.107",
"username": "super",
"password": "pass",
}