Question: I am on the final chapter of Automate the Boring Stuff with Python- Chapter 20 begins by installing and importing pyautogui, and I have been unable to accomplish this. I HAVE been able to install the module on my Mac I have NOT been able to add this as a Third Party Module in Mu Editor. Here is the error I get when I try to add this as a module in the Mu Editor: Collecting pyautogui Using cached PyAutoGUI-0.9.54.tar.gz (61 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Collecting pygetwindow>=0.0.5 Using cached PyGetWindow-0.0.9.tar.gz (9.7 kB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Collecting mouseinfo Using cached MouseInfo-0.1.3.tar.gz (10 kB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Collecting pymsgbox Using cached PyMsgBox-1.0.9.tar.gz (18 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Collecting pyobjc-framework-quartz Using cached pyobjc_framework_Quartz-10.3.2-cp38-cp38-macosx_11_0_universal2.whl (211 kB) Collecting pyobjc-core Using cached pyobjc_core-11.0.tar.gz (994 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'error' error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [2 lines of output] <string>:18: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html PyObjC: Need at least Python 3.9 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. FINISHED  I have been able to successfully install pyautogui on my Mac using: pip3 install pyautogui I am using python3.9 I am on macOS Sequia 15.3.1 But when I attempt to add this as a Third Party Package to Mu Editor- it exits with the error above. I have scoured the internet in search for answers and have tried:  restarting uninstalling and reinstalling both pyautogui and pyobjc installing pyautogui as admin Following the url to https://setuptools.pypa.io/en/latest/pkg_resources.htmlm(but I did not understand this page to be honest).  I am expecting the install to complete without error so that I can import it in REPL and practice with pyautogui. I am particularly confused about why it says PyObjC: Need at least Python 3.9, even though I am running Python 3.9.6. Please help!

Answer: Reasons According to the docs Mu Editor supports only versions from 3.5 to 3.8. That is issue exists since 2021 and hasn't been resolved since.  You might have a newer version installed, but the Mu Editor has its own environment with its own Python interpreter.  I've just successfully installed pyautogui on python3.7, so you use 3.6 at best. Solutions  Try older versions of pyautogui Enter the name of the package like this: pyautogui==version of the package.  List of versions: https://pypi.org/project/PyAutoGUI/#history Switch to a different editor I recommend PyCharm or Visual Studio Code.