无法使用 cygwin 运行 pexect
在 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 一起使用吗?
Getting following errors while executing the pexpect example file at a Cygwin prompt.
Can anyone help?
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.
Can Pexpect work with a Python for Windows, invoked from Cygwin?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试从 cygwin 安装 Python。我的意思是cygwin的Python,可以安装
Try to install Python from cygwin. I mean cygwin's Python, that can be installed