Search code examples
pythonpython-3.xmacospyautogui

Why am I getting a command error installing pyautogui with pip3 (macos)?


I tried installing the pyautogui:

pip3 install pyautogui

I get this error code: picture of error code

It runs for every pyautogui version, trying to find one that satisfies the requirements.

I have pillow, pyobj-core and pyobj. I am on macOS Monterey version 12.1

Solution:

run: curl https://bootstrap.pypa.io/get-pip.py | python3

if command doesn't work, you have to change the path of python3

PATH="/Library/Frameworks/Python.framework/Versions/3.8/bin:${PATH}" export PATH

then: pip3 install --upgrade setuptools

finally: pip3 install pyautogui


Solution

  • maybe you can try this

    python3 -m pip install pyautogui
    

    this is based on here