【发布时间】:2010-04-29 09:27:57
【问题描述】:
在 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 调用的 Python for Windows 一起使用?
【问题讨论】:
-
我发现一些博客文章说这是可能的,但我不确定我是否理解我目前安装的内容与这个人所说的内容之间的细微差别。 techi2teach.blogspot.com/2011/01/…
标签: python windows cygwin pexpect