Can't run pyautogui comands in Python programs

It’s best to post code and errors inside markers so they come out readable

I was thinking that:

seems to give you the most likely problem pretty well, your Python is too new, but both products claim to work with 3.12. So I don’t know.

If I had to dig into it, I would probably try simple examples from PyScreeze so as to simplify the problem, and maybe pyscreeze will tell you why it doesn’t import, rather than PyAutoGUI’s guess.

2 Likes