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