AttributeError: module ‘pexpect‘ has no attribute ‘spawn‘
问题描述Windows 系统上安装了一个 Python 的第三方包 pexpect,调用包函数的时候报错。>>> import pexpect>>> pexpect.spawn('ping baidu.com')Traceback (most recent call last): File "<stdin>", line 1, in <module>AttributeError: module 'pexpect' has no att