Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error when trying to install pyautogui

I am trying to install pytautogui through pip, but keep running into issues. This is on a Mac. I have tried running the command under python 2.7 as well as 3.6.1, but to no success.

Complete output from command python setup.py egg_info:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/private/var/folders/sz/62b931pd5zjbclx2fzpkww1w0000gn/T/pip-build-0vb25t/pyautogui/setup.py", line 6, in <module>
    version=__import__('pyautogui').__version__,
  File "pyautogui/__init__.py", line 110, in <module>
    from . import _pyautogui_osx as platformModule
  File "pyautogui/_pyautogui_osx.py", line 7, in <module>
    assert False, "You must first install pyobjc-core and pyobjc: https://pyautogui.readthedocs.io/en/latest/install.html"
AssertionError: You must first install pyobjc-core and pyobjc: https://pyautogui.readthedocs.io/en/latest/install.html

What am I missing here, I already installed pyobjc-core but that didnt fix it? Does this look like an issue with pyautogui installer ?

Thanks for your help.

like image 509
DevZone Avatar asked Oct 26 '25 06:10

DevZone


1 Answers

In issue like that you should:

  1. Check if you install the version of pyobjc that compatible with your python version.
  2. Check if you install the both require packages (pyobjc, pyobjc-core)
like image 182
Ahmad Nourallah Avatar answered Oct 28 '25 20:10

Ahmad Nourallah



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!