Centos上没有模块名称netmiko

2024-06-11 22:36:25 发布

您现在位置:Python中文网/ 问答频道 /正文

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

当我使用Python(2.7.5)时,我一直在获取下面的消息

enter image description here

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

enter image description here

我已经确认我确实安装了netmiko

enter image description here


Tags: 模块消息centosnetmiko
2条回答

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

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

python3 -m pip install netmiko

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

python -m pip install netmiko

我已经尝试过python 3.x命令,该命令运行良好

python3 -m pip install netmiko

Python2.x命令不起作用。 看起来最新的netmiko不再支持3.x下的python版本了

相关问题 更多 >