簡體   English   中英

無法啟動python winpexpect庫

[英]Cannot launch python winpexpect library

我嘗試在Windows 7 64bits和python 2.6上使用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

winpexpect取決於pywin32 您可以在此處找到安裝文件。

使用此鏈接為您的系統下載最新版本。 (Python 2.6 64位版本)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM