请问下面代码执行报错怎么解决
已经安装pywinauto了,在pycharm上运行下面代码frompywinauto.applicationimportApplicationapp=Applicati...
已经安装 pywinauto 了,在pycharm上运行下面代码
from pywinauto.application import Application
app = Application(backend="uia").start("notepad.exe")
报错如下:
"D:\Python installer\python_LianXi\venv\Scripts\python.exe" "D:/Python installer/python_LianXi/pywinauto.py"
Traceback (most recent call last):
File "D:/Python installer/python_LianXi/pywinauto.py", line 1, in <module>
from pywinauto.application import Application
File "D:\Python installer\python_LianXi\pywinauto.py", line 1, in <module>
from pywinauto.application import Application
ModuleNotFoundError: No module named 'pywinauto.application'; 'pywinauto' is not a package 展开
from pywinauto.application import Application
app = Application(backend="uia").start("notepad.exe")
报错如下:
"D:\Python installer\python_LianXi\venv\Scripts\python.exe" "D:/Python installer/python_LianXi/pywinauto.py"
Traceback (most recent call last):
File "D:/Python installer/python_LianXi/pywinauto.py", line 1, in <module>
from pywinauto.application import Application
File "D:\Python installer\python_LianXi\pywinauto.py", line 1, in <module>
from pywinauto.application import Application
ModuleNotFoundError: No module named 'pywinauto.application'; 'pywinauto' is not a package 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |