简体   繁体   English

无法使用cygwin运行pexect

[英]Could not run pexect with cygwin

Getting following errors while executing the pexpect example file at a Cygwin prompt. 在Cygwin提示符下执行pexpect示例文件时出现以下错误。 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? Pexpect是否可以使用从Cygwin调用的Windows版Python?

Try to install Python from cygwin. 尝试从cygwin安装Python。 I mean cygwin's Python, that can be installed 我的意思是可以安装cygwin的Python

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM