扫描主机信息报错

来源:1-1 自动化运维开发实战课程导学

对于自己是一个挑战

2018-05-22

(imoocc) [root@ACCA0150 imoocc_py3_online]# python3 main.py 

Traceback (most recent call last):

  File "main.py", line 20, in <module>

    from scanhosts.util.nmap_all_server import NmapNet

  File "/usr/local/src/imoocc/imoocc_py3_online/scanhosts/util/nmap_all_server.py", line 21, in <module>

    from scanhosts.lib.SnmpVMS import SnmpESXI

  File "/usr/local/src/imoocc/imoocc_py3_online/scanhosts/lib/SnmpVMS.py", line 22, in <module>

    from pyvim.connect import SmartConnect,Disconnect

ModuleNotFoundError: No module named 'pyvim.connect'

(imoocc) [root@ACCA0150 imoocc_py3_online]# 


写回答

1回答

Jeson

2018-05-22

ModuleNotFoundError: No module named 'pyvim.connect'

缺少这个模块,请用这个方式安装下:

pip install pyvim


0
0

Python+Django+Ansible Playbook自动化运维项目实战

【课程升级3.6版本】大牛全面践行DevOps,运维与开发间高效协作

861 学习 · 326 问题

查看课程