【问题标题】:Cannot launch python winpexpect library无法启动 python winpexpect 库
【发布时间】:2013-07-10 09:26:25
【问题描述】:

我尝试在带有 python 2.6 的 windows 7 64 位上使用 winpexpect。

>>> import winpexpect
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "c:\python26\lib\site-packages\winpexpect-1.6-py2.6.egg\winpexpect.py", l
ine 11, in <module>
    import pywintypes
  File "C:\Python26\lib\site-packages\win32\lib\pywintypes.py", line 124, in <mo
dule>
    __import_pywin32_system_module__("pywintypes", globals())
  File "C:\Python26\lib\site-packages\win32\lib\pywintypes.py", line 98, in __im
port_pywin32_system_module__
    raise ImportError("No system module '%s' (%s)" % (modname, filename))
ImportError: No system module 'pywintypes' (pywintypes26.dll)

或者安装不会引发任何错误:

Extracting winpexpect-1.6-py2.6.egg to c:\python26\lib\site-packages
winpexpect 1.6 is already the active version in easy-install.pth

Installed c:\python26\lib\site-packages\winpexpect-1.6-py2.6.egg
Processing dependencies for winpexpect==1.6
Searching for pywin32==218
Best match: pywin32 218
Adding pywin32 218 to easy-install.pth file   
Using c:\python26\lib\site-packages

【问题讨论】:

    标签: python windows pywin32 pexpect


    【解决方案1】:

    winpexpect 依赖于pywin32。你可以找到安装文件here

    Use this link 为您的系统下载最新版本。 (Python 2.6 64位版本)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-12-11
      • 2016-05-23
      • 2023-04-07
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多