Centos上没有模块名称netmiko

问题描述

这是我第一次在Centos上使用netmiko模块。

使用Python(2.7.5)时,我总是收到以下消息。

enter image description here

如果我使用的是Python(3.6.8),它将是这样:

enter image description here

我已确认已安装netmiko。

enter image description here

解决方法

由于系统中的python版本不同,可能是一个问题。也许您可以通过调用特定python版本的python3 -m pip install netmiko 模块来安装它。

因此,对于 python 3.x ,您可以执行以下操作:

python -m pip install netmiko

类似地,对于 python 2.x ,您可以执行:

login.html
,

我尝试了运行良好的python 3.x命令。

python3 -m pip install netmiko

python 2.x命令不起作用。 似乎最新的netmiko不再支持3.x下的python版本。