gpt4 book ai didi

python - 无法启动 python winpexpect 库

转载 作者:可可西里 更新时间:2023-11-01 11:55:42 25 4
gpt4 key购买 nike

我尝试在带有 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

最佳答案

winpexpect 取决于 pywin32 .您可以找到安装文件 here .

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

关于python - 无法启动 python winpexpect 库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17567012/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com