安装paramiko模块

使用Python实现自动化运维巡检网络设备,需要使用到paramiko模块

下载过程:

  1. 进入至CMD命令提示符

win + r 跳转出 " 运行 " 窗口

安装paramiko模块_第1张图片

打开内输入" cmd " 进入命令提示符

安装paramiko模块_第2张图片
安装paramiko模块_第3张图片

  1. 安装paramiko模块

cmd输入:pip install paramiko

安装paramiko模块_第4张图片

PS:安装的会有所区别,关键看提示信息

如果已安装paramiko,再输入:"pip install paramiko"

C:\>pip install paramiko
Requirement already satisfied: paramiko in c:\appdata\local\programs\python\python310\lib\site-packages (3.0.0)
Requirement already satisfied: cryptography>=3.3 in c:\appdata\local\programs\python\python310\lib\site-packages (from paramiko) (39.0.2)
Requirement already satisfied: pynacl>=1.5 in c:\appdata\local\programs\python\python310\lib\site-packages (from paramiko) (1.5.0)
Requirement already satisfied: bcrypt>=3.2 in c:\appdata\local\programs\python\python310\lib\site-packages (from paramiko) (4.0.1)
Requirement already satisfied: cffi>=1.12 in c:\appdata\local\programs\python\python310\lib\site-packages (from cryptography>=3.3->paramiko) (1.15.1)
Requirement already satisfied: pycparser in c:\appdata\local\programs\python\python310\lib\site-packages (from cffi>=1.12->cryptography>=3.3->paramiko) (2.21)

  1. 安装好后paramiko模块,会提示更新

若需要更新版本 输入“ pip install --upgrade pip

安装paramiko模块_第5张图片

*报错信息提示 无法安装程序包 但已经将pip-22.0.4的卸载

更改后路径重新更新了一下,发现已经更新版本

你可能感兴趣的:(python)