【问题标题】:Could not run pexect with cygwin无法使用 cygwin 运行 pexect
【发布时间】: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


【解决方案1】:

尝试从 cygwin 安装 Python。我的意思是cygwin的python,可以安装的

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-06-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-09-13
    • 2013-02-13
    相关资源
    最近更新 更多