Python:无法安装 python 模块“pyautogui";

编程入门 行业动态 更新时间:2024-10-09 15:16:27
本文介绍了Python:无法安装 python 模块“pyautogui";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我无法在使用 python 3.8 版的 Windows 10 上安装名为pyautogui"的 python 模块

I can't install python module called "pyautogui" on windows 10 with python version 3.8

命令:

C:\Users\Миша>pip install pyautogui Collecting pyautogui Using cached PyAutoGUI-0.9.50.tar.gz (57 kB) Collecting pymsgbox Using cached PyMsgBox-1.0.8.tar.gz (18 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing wheel metadata ... error ERROR: Command errored out with exit status 1: command: 'c:\python38\python.exe' 'c:\python38\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\CA81~1\AppData\Local\Temp\tmphpcf9lnw' cwd: C:\Users\Миша\AppData\Local\Temp\pip-install-rzx8xe3p\pymsgbox Complete output (14 lines): running dist_info creating C:\Users\Миша\AppData\Local\Temp\pip-modern-metadata-f8srr00j\PyMsgBox.egg-info writing C:\Users\Миша\AppData\Local\Temp\pip-modern-metadata-f8srr00j\PyMsgBox.egg-info\PKG-INFO writing dependency_links to C:\Users\Миша\AppData\Local\Temp\pip-modern-metadata-f8srr00j\PyMsgBox.egg-info\dependency_links.txt writing top-level names to C:\Users\Миша\AppData\Local\Temp\pip-modern-metadata-f8srr00j\PyMsgBox.egg-info\top_level.txt writing manifest file 'C:\Users\Миша\AppData\Local\Temp\pip-modern-metadata-f8srr00j\PyMsgBox.egg-info\SOURCES.txt' reading manifest file 'C:\Users\Миша\AppData\Local\Temp\pip-modern-metadata-f8srr00j\PyMsgBox.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' Error in sitecustomize; set PYTHONVERBOSE for traceback: SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xcc in position 0: invalid continuation byte (sitecustomize.py, line 21) warning: no files found matching '*.py' under directory 'pymsgbox' writing manifest file 'C:\Users\Миша\AppData\Local\Temp\pip-modern-metadata-f8srr00j\PyMsgBox.egg-info\SOURCES.txt' creating 'C:\Users\Миша\AppData\Local\Temp\pip-modern-metadata-f8srr00j\PyMsgBox.dist-info' error: invalid command 'bdist_wheel' ---------------------------------------- ERROR: Command errored out with exit status 1: 'c:\python38\python.exe' 'c:\python38\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\CA81~1\AppData\Local\Temp\tmphpcf9lnw' Check the logs for full command output.

我还没有尝试做某事,因为我不明白错误.有什么想法吗?

I haven't tried to do something yet because I don't understand the error. Any ideas?

推荐答案

我找到了解决方案:

I found the solution:

  • 将 pip 回滚到旧版本:

  • rollback pip to an older version: python -m pip install pip==18.1

  • 安装所需的模块:

  • install desired module:

    pip install pyautogui

  • 更新点:

  • update pip:

    python -m pip install --upgrade pip

  • 附言此解决方案也适用于其他模块.

    P.S. this solution works for other modules too.

    更多推荐

    Python:无法安装 python 模块“pyautogui";

    本文发布于:2023-06-11 03:31:10,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/625722.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:模块   python   Python   pyautogui   quot

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!