admin管理员组文章数量:1405168
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 .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 .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!
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!
Share asked Mar 8 at 20:52 BrandonCodesBrandonCodes 133 bronze badges 1 |1 Answer
Reset to default 1Reasons
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
Enter the name of the package like this:pyautogui
pyautogui==version of the package
.
List of versions: https://pypi./project/PyAutoGUI/#historySwitch to a different editor
I recommendPyCharm
orVisual Studio Code
.
本文标签:
版权声明:本文标题:python - How do I get past this error in installing pyautogui as a third party module in Mu Editor? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744885346a2630451.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
-cp38-cp38-macosx
so it uses Python 3.8 – furas Commented Mar 9 at 6:58