[轉載] AttributeError: module 'comtypes.gen.UIAutomationClient' has no attribute 'IUIAutomation'


原作者:   程小麗   

原文鏈接:https://blog.csdn.net/qq_30016059/article/details/102797911

 

使用 Pyinstaller 打包 導入Uiautomation的python 文件,在某些計算機上運行時出現  "AttributeError: module 'comtypes.gen.UIAutomationClient' has no attribute 'IUIAutomation' ",此問題一直未解決,在看到原博客后解決,解決方法 

安裝comtypes

from comtypes.gen.UIAutomationClient import *

重新打包 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM