坚持Pexpect脚本需要帮助!!
使用python准备好了ssh到unix的代码主机现在是windows,当我运行它时,它给出了以下错误:
选择 | 换行 | 行号
- Traceback (most recent call last):
- File "C:\Python26\pexpect-2.1\pexpect-2.1\pxssh.py", line 1, in <module>
- from pexpect import *
- File "C:\Python26\pexpect-2.1\pexpect-2.1\pexpect.py", line 83, in <module>
- Pexpect is intended for UNIX-like operating systems.""")
- ImportError: No module named resource
- A critical module was not found. Probably this operating system does not support it.
- Pexpect is intended for UNIX-like operating systems.
- >>> ================================ RESTART ================================
- >>>
- Traceback (most recent call last):
- File "C:\Python26\ssh_session.py", line 7, in <module>
- from pexpect import *
- ImportError: No module named pexpect
- >>>
我们可以使用windows主机上的pexpect吗?!