Python Forum
Can't run pyautogui on Mohave - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Can't run pyautogui on Mohave (/thread-21413.html)



Can't run pyautogui on Mohave - veromi22 - Sep-29-2019

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


RE: Can't run pyautogui on Mohave - veromi22 - Sep-29-2019

At least someone succeeds pyautogui to start working with the Mojave 10.14.6?


RE: Can't run pyautogui on Mohave - buran - Sep-29-2019

Obviously you have more than one python version. You installed pyautogui in different python installation than the one you think


RE: Can't run pyautogui on Mohave - veromi22 - Sep-29-2019

(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


RE: Can't run pyautogui on Mohave - veromi22 - Sep-30-2019

Via venv works fine. Any suggestions?