每天写题 2022-05-03 13:07 采纳率: 57.1%
浏览 221
已结题

正在用pip给python安装插件PyHook3出现以下报错,请讲述报错大概意思及解决方式

 问题遇到的现象和发生背景
正在用pip给python安装插件PyHook3出现以下报错,请讲述报错大概内容,以及解决方式

img

 问题相关代码,请勿粘贴截图
C:\WINDOWS\system32>pip install PyHook3
Collecting PyHook3
Downloading PyHook3-1.6.1.tar.gz (12 kB)
Preparing metadata (setup.py) ... done
Using legacy 'setup.py install' for PyHook3, since package 'wheel' is not installed.
Installing collected packages: PyHook3
Running setup.py install for PyHook3 ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\25131\appdata\local\programs\python\python36\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\25131\AppData\Local\Temp\pip-install-29ymvsud\pyhook3_a7ee5b0b4e9d48a9859c2fed6d695fd4\setup.py'"'"'; file='"'"'C:\Users\25131\AppData\Local\Temp\pip-install-29ymvsud\pyhook3_a7ee5b0b4e9d48a9859c2fed6d695fd4\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\25131\AppData\Local\Temp\pip-record-yd38tres\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\25131\appdata\local\programs\python\python36\Include\PyHook3'
cwd: C:\Users\25131\AppData\Local\Temp\pip-install-29ymvsud\pyhook3_a7ee5b0b4e9d48a9859c2fed6d695fd4
Complete output (17 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\PyHook3
copying aa hook.py -> build\lib.win-amd64-3.6\PyHook3
copying cpyHook.py -> build\lib.win-amd64-3.6\PyHook3
copying doc.py -> build\lib.win-amd64-3.6\PyHook3
copying example.py -> build\lib.win-amd64-3.6\PyHook3
copying HookManager.py -> build\lib.win-amd64-3.6\PyHook3
copying init.py -> build\lib.win-amd64-3.6\PyHook3
running build_ext
building 'PyHook3._cpyHook' extension
swigging cpyHook.i to cpyHook_wrap.c
swig.exe -python -o cpyHook_wrap.c cpyHook.i
error: command 'swig.exe' failed: No such file or directory

ERROR: Command errored out with exit status 1: 'c:\users\25131\appdata\local\programs\python\python36\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\25131\AppData\Local\Temp\pip-install-29ymvsud\pyhook3_a7ee5b0b4e9d48a9859c2fed6d695fd4\setup.py'"'"'; file='"'"'C:\Users\25131\AppData\Local\Temp\pip-install-29ymvsud\pyhook3_a7ee5b0b4e9d48a9859c2fed6d695fd4\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\25131\AppData\Local\Temp\pip-record-yd38tres\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\25131\appdata\local\programs\python\python36\Include\PyHook3' Check the logs for full command output.
 运行结果及报错内容

 我的解答思路和尝试过的方法

 我想要达到的结果

  • 写回答

1条回答 默认 最新

  • A Python 萌新花花 2022-05-03 14:21
    关注
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 系统已结题 6月13日
  • 已采纳回答 6月5日
  • 创建了问题 5月3日

悬赏问题

  • ¥15 Linux环境下CA证书更新问题
  • ¥60 微信小程序如何上传QQ聊天文件
  • ¥300 开发的系统遭到无良商家的破解,请问如何防止再次发生,并追回损失
  • ¥15 java代码写在记事本上后在cmd上运行时无报错但又没生成文件
  • ¥15 关于#python#的问题:在跑ldsc数据整理的时候一直抱这种错误,要么--out识别不了参数,要么--merge-alleles识别不了参数(操作系统-linux)
  • ¥15 PPOCRLabel
  • ¥15 混合键合键合机对准标识
  • ¥100 现在不懂的是如何将当前的相机中的照片,作为纹理贴图,映射到扫描出的模型上
  • ¥15 魔霸ROG7 pro,win11.息屏后会显示黑屏,如图,如何解决?(关键词-重新启动)
  • ¥15 有没有人知道这是哪里出了问题啊?要怎么改呀?