Python Forum

Full Version: Can't run pyautogui on Mohave
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
At least someone succeeds pyautogui to start working with the Mojave 10.14.6?
Obviously you have more than one python version. You installed pyautogui in different python installation than the one you think
(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
Via venv works fine. Any suggestions?