Python Forum
Can't run pyautogui on Mohave
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can't run pyautogui on Mohave
#1
Tried to search in Google, didn't find the solution

I have mac Mohave 10.14.6

Just installed Python 3.7.4 from Python org

Then installed pyautogui
https://pyautogui.readthedocs.io/en/latest/install.html

Then updated pyautogui via pip3 install --upgrade pip

ak$ pip --version
pip 19.2.3 from /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip (python 3.7)

When I run program

import pyautogui
import time
pyautogui.moveTo(169,1200)
I see
Output:
File "571.py", line 1, in <module> import pyautogui ImportError: No module named pyautogui
What I'm doing wrong? Thanx
Reply
#2
At least someone succeeds pyautogui to start working with the Mojave 10.14.6?
Reply
#3
Obviously you have more than one python version. You installed pyautogui in different python installation than the one you think
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#4
(Sep-29-2019, 04:59 PM)buran Wrote: Obviously you have more than one python version. You installed pyautogui in different python installation than the one you think


It's true. I had version 2.7, and I googled about it.
I uninstalled both versions and cleaned libraries.

And after I installed 3.7.4 and pyautogui again.

And it didn't help.

Fortunately, I have another Mac, which I never used for Python before.

There is the same.

Please help, Don't want to use VM with Windows
Reply
#5
Via venv works fine. Any suggestions?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Pyautogui, İmagesearch, Moving target Beyazx 0 585 Jun-27-2023, 08:47 PM
Last Post: Beyazx
  PyautoGUI- How to use If - Else with pyautogui.locateCenterOnScreen Tiel 3 8,320 Jun-27-2022, 02:00 PM
Last Post: DeaD_EyE
  pyautogui.locateOnScreen producing error dude8074 6 3,814 Apr-17-2022, 05:05 PM
Last Post: bowlofred
  how to take a screnshot by Pyautogui automatically and randomly rachidel07 0 3,538 Feb-03-2021, 01:16 PM
Last Post: rachidel07
Sad problem with Pyautogui rachidel07 1 2,462 Jan-27-2021, 05:43 PM
Last Post: nilamo
  pyautogui with a display emulator? gumby4231 0 2,595 Jul-30-2020, 02:46 PM
Last Post: gumby4231
  pyautogui.screenshot region is not working alexlu 6 6,490 Jun-04-2020, 10:46 AM
Last Post: alexlu
  loop in pyautogui (python automation GUI application) pyprogrammer 0 4,782 Feb-12-2020, 02:52 PM
Last Post: pyprogrammer
  Doesn't work function pyautogui.typewrite() aliyevmiras 1 4,800 Dec-22-2019, 11:35 AM
Last Post: aliyevmiras
  pyautogui while loop Bmart6969 0 6,560 Oct-03-2019, 03:32 PM
Last Post: Bmart6969

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020