3
我想在我的64位機器上安裝pywinauto。我已經處理了Assertion錯誤的問題,並將它們從win32structures文件中刪除。但現在當我去導入pywinauto我得到這個錯誤:python在64位安裝pywinauto
>>> import pywinauto
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python27\lib\site-packages\pywinauto\__init__.py", line 28, in <module>
import findwindows
File "C:\Python27\lib\site-packages\pywinauto\findwindows.py", line 37, in <module>
import controls
File "C:\Python27\lib\site-packages\pywinauto\controls\__init__.py", line 25,
in <module>
from HwndWrapper import GetDialogPropsFromHandle
File "C:\Python27\lib\site-packages\pywinauto\controls\HwndWrapper.py", line 34, in <module>
from pywinauto import SendKeysCtypes as SendKeys
ImportError: cannot import name SendKeysCtypes
沒有人知道如何解決這個問題?
是的。正確的方法。我卸載64位Python並安裝了32位版本。這個問題解決了。 – Vanguarder