1
在Cygwin提示符下执行pexpect示例文件时出现以下错误。 任何人都可以帮忙吗?无法通过cygwin运行pexect
[email protected] /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 for Python工作吗?
我发现一些博客文章说这是可能的,但我不知道我明白我目前安装的内容与这个人说的细微差别。 http://techi2teach.blogspot.com/2011/01/how-to-get-python-pexpect-module-on.html – 2014-09-03 15:57:01