我正在玩 pyvmomi,我设法让“示例”脚本(getallvms.py)工作。
我现在正在尝试在这里找到的另一个脚本: https ://raw.githubusercontent.com/vmware/pyvmomi-community-samples/master/samples/vminfo_quick.py
当我运行此脚本时,我收到以下错误:
Iwans-Mac:sample iwan-home-folder$ python vminfo_quick.py -s 10.11.11.215 -u pyvmomi-user@sso-iwan.local -p VMware1!
Traceback (most recent call last):
File "vminfo_quick.py", line 19, in <module>
from tools import cli
ImportError: No module named tools
我不确定如何安装模块“工具”。有人可以告诉我应该如何继续吗?
谢谢,伊万