开发者

Could not run pexect with cygwin

开发者 https://www.devze.com 2022-12-28 09:07 出处:网络
Getting following errors while executing the pexpect example file at a Cygwin prompt. Can anyone help?

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?


Try to install Python from cygwin. I mean cygwin's Python, that can be installed

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号