Answer the question
In order to leave comments, you need to log in
How to solve problems with pyautogui?
I wrote a small code in 2 lines:
import pyautogui
pg.move(50, 50)
Дом@DESKTOP-4SAR7DE C:\Users\Дом\Desktop\python
$ python pcman.py
Traceback (most recent call last):
File "C:\Users\Дом\Desktop\python\pcman.py", line 1, in <module>
import pyautogui as pg
File "C:\Users\Дом\AppData\Local\Programs\Python\Python39\lib\site-packages\pyautogui\__init__.py", line 221, in <module>
locateOnWindow.__doc__ = pyscreeze.locateOnWindow.__doc__
AttributeError: module 'pyscreeze' has no attribute 'locateOnWindow'
Дом@DESKTOP-4SAR7DE C:\Users\Дом\Desktop\python
Answer the question
In order to leave comments, you need to log in
You don't need to downgrade Python. You need to downgrade the version of the pyautogui module itself.
This can be done using this command: pip install PyAutoGUI==0.9.52
Apparently, in version 0.9.53, someone messed up somewhere.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question