在 Cygwin 提示符下执行 pexpect 示例文件时出现以下错误。 有人可以帮忙吗?
Administrator@INDSQA2253 /cygdrive/c/Python26/Tools/pexpect-2.1/examples
$ python ssh_session.py
Traceback (most recent call last):
File "ssh_session.py", line 7, in <module>
from pexpect import *
File "c:\Python26\lib\site-packages\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.
Pexpect 可以与从 Cygwin 调用的 Windows 版 Python 一起使用吗?
最佳答案
尝试从 cygwin 安装 Python。我的意思是cygwin的Python,可以安装
关于python - 无法使用 cygwin 运行 pexect,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2736137/