Код:
C:\Users\Boss\Downloads>pip install pyWinHook
Collecting pyWinHook
Downloading pyWinhook-1.6.2.zip (15 kB)
Requirement already satisfied: pywin32 in c:\users\boss\appdata\local\programs\python\python39\lib\site-packages (from pyWinHook) (300)
Using legacy 'setup.py install' for pyWinHook, since package 'wheel' is not installed.
Installing collected packages: pyWinHook
Running setup.py install for pyWinHook ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\boss\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Boss\\AppData\\Local\\Temp\\pip-install-qt9_l4ua\\pywinhook_b61345faff21409fa73fcf0959e3e18e\\setup.py'"'"'; __file__='"'"'C:\\Users\\Boss\\AppData\\Local\\Temp\\pip-install-qt9_l4ua\\pywinhook_b61345faff21409fa73fcf0959e3e18e\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Boss\AppData\Local\Temp\pip-record-bsux0lp5\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\boss\appdata\local\programs\python\python39\Include\pyWinHook'
cwd: C:\Users\Boss\AppData\Local\Temp\pip-install-qt9_l4ua\pywinhook_b61345faff21409fa73fcf0959e3e18e\
Complete output (16 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\pyWinhook
copying pyWinhook\aa hook.py -> build\lib.win-amd64-3.9\pyWinhook
copying pyWinhook\doc.py -> build\lib.win-amd64-3.9\pyWinhook
copying pyWinhook\example.py -> build\lib.win-amd64-3.9\pyWinhook
copying pyWinhook\HookManager.py -> build\lib.win-amd64-3.9\pyWinhook
copying pyWinhook\__init__.py -> build\lib.win-amd64-3.9\pyWinhook
running build_ext
building 'pyWinhook._cpyHook' extension
swigging pyWinhook/cpyHook.i to pyWinhook/cpyHook_wrap.c
swig.exe -python -o pyWinhook/cpyHook_wrap.c pyWinhook/cpyHook.i
error: command 'swig.exe' failed: None
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\boss\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Boss\\AppData\\Local\\Temp\\pip-install-qt9_l4ua\\pywinhook_b61345faff21409fa73fcf0959e3e18e\\setup.py'"'"'; __file__='"'"'C:\\Users\\Boss\\AppData\\Local\\Temp\\pip-install-qt9_l4ua\\pywinhook_b61345faff21409fa73fcf0959e3e18e\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Boss\AppData\Local\Temp\pip-record-bsux0lp5\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\boss\appdata\local\programs\python\python39\Include\pyWinHook' Check the logs for full command output.
C:\Users\Boss\Downloads> pip install gevent --pre
Collecting gevent
Downloading gevent-21.1.2-cp39-cp39-win_amd64.whl (1.6 MB)
|████████████████████████████████| 1.6 MB 731 kB/s
Collecting cffi>=1.12.2
Downloading cffi-1.14.4-cp39-cp39-win_amd64.whl (179 kB)
|████████████████████████████████| 179 kB 1.7 MB/s
Collecting greenlet<2.0,>=0.4.17
Downloading greenlet-1.0.0-cp39-cp39-win_amd64.whl (95 kB)
|████████████████████████████████| 95 kB 1.1 MB/s
Collecting zope.event
Downloading zope.event-4.5.0-py2.py3-none-any.whl (6.8 kB)
Requirement already satisfied: setuptools in c:\users\boss\appdata\local\programs\python\python39\lib\site-packages (from gevent) (49.2.1)
Collecting zope.interface
Downloading zope.interface-5.2.0-cp39-cp39-win_amd64.whl (196 kB)
|████████████████████████████████| 196 kB 1.6 MB/s
Collecting pycparser
Downloading pycparser-2.20-py2.py3-none-any.whl (112 kB)
|████████████████████████████████| 112 kB 1.7 MB/s
Installing collected packages: pycparser, zope.interface, zope.event, greenlet, cffi, gevent
Successfully installed cffi-1.14.4 gevent-21.1.2 greenlet-1.0.0 pycparser-2.20 zope.event-4.5.0 zope.interface-5.2.0
C:\Users\Boss\Downloads>pip install auto-py-to-exe
Collecting auto-py-to-exe
Downloading auto_py_to_exe-2.8.0-py2.py3-none-any.whl (79 kB)
|████████████████████████████████| 79 kB 1.1 MB/s
Requirement already satisfied: pyinstaller>=4.1 in c:\users\boss\appdata\local\programs\python\python39\lib\site-packages (from auto-py-to-exe) (4.1)
Collecting Eel==0.12.4
Downloading Eel-0.12.4.tar.gz (15 kB)
Collecting bottle
Downloading bottle-0.12.19-py3-none-any.whl (89 kB)
|████████████████████████████████| 89 kB 2.5 MB/s
Collecting bottle-websocket
Downloading bottle-websocket-0.2.9.tar.gz (2.0 kB)
Requirement already satisfied: future in c:\users\boss\appdata\local\programs\python\python39\lib\site-packages (from Eel==0.12.4->auto-py-to-exe) (0.18.2)
Collecting whichcraft
Downloading whichcraft-0.6.1-py2.py3-none-any.whl (5.2 kB)
Requirement already satisfied: pywin32-ctypes>=0.2.0 in c:\users\boss\appdata\local\programs\python\python39\lib\site-packages (from pyinstaller>=4.1->auto-py-to-exe) (0.2.0)
Requirement already satisfied: altgraph in c:\users\boss\appdata\local\programs\python\python39\lib\site-packages (from pyinstaller>=4.1->auto-py-to-exe) (0.17)
Requirement already satisfied: setuptools in c:\users\boss\appdata\local\programs\python\python39\lib\site-packages (from pyinstaller>=4.1->auto-py-to-exe) (49.2.1)
Requirement already satisfied: pefile>=2017.8.1 in c:\users\boss\appdata\local\programs\python\python39\lib\site-packages (from pyinstaller>=4.1->auto-py-to-exe) (2019.4.18)
Requirement already satisfied: pyinstaller-hooks-contrib>=2020.6 in c:\users\boss\appdata\local\programs\python\python39\lib\site-packages (from pyinstaller>=4.1->auto-py-to-exe) (2020.11)
Collecting gevent-websocket
Downloading gevent_websocket-0.10.1-py3-none-any.whl (22 kB)
Requirement already satisfied: gevent in c:\users\boss\appdata\local\programs\python\python39\lib\site-packages (from gevent-websocket->bottle-websocket->Eel==0.12.4->auto-py-to-exe) (21.1.2)
Requirement already satisfied: zope.interface in c:\users\boss\appdata\local\programs\python\python39\lib\site-packages (from gevent->gevent-websocket->bottle-websocket->Eel==0.12.4->auto-py-to-exe) (5.2.0)
Requirement already satisfied: greenlet<2.0,>=0.4.17 in c:\users\boss\appdata\local\programs\python\python39\lib\site-packages (from gevent->gevent-websocket->bottle-websocket->Eel==0.12.4->auto-py-to-exe) (1.0.0)
Requirement already satisfied: zope.event in c:\users\boss\appdata\local\programs\python\python39\lib\site-packages (from gevent->gevent-websocket->bottle-websocket->Eel==0.12.4->auto-py-to-exe) (4.5.0)
Requirement already satisfied: cffi>=1.12.2 in c:\users\boss\appdata\local\programs\python\python39\lib\site-packages (from gevent->gevent-websocket->bottle-websocket->Eel==0.12.4->auto-py-to-exe) (1.14.4)
Requirement already satisfied: pycparser in c:\users\boss\appdata\local\programs\python\python39\lib\site-packages (from cffi>=1.12.2->gevent->gevent-websocket->bottle-websocket->Eel==0.12.4->auto-py-to-exe) (2.20)
Using legacy 'setup.py install' for Eel, since package 'wheel' is not installed.
Using legacy 'setup.py install' for bottle-websocket, since package 'wheel' is not installed.
Installing collected packages: gevent-websocket, bottle, whichcraft, bottle-websocket, Eel, auto-py-to-exe
Running setup.py install for bottle-websocket ... done
Running setup.py install for Eel ... done
Successfully installed Eel-0.12.4 auto-py-to-exe-2.8.0 bottle-0.12.19 bottle-websocket-0.2.9 gevent-websocket-0.10.1 whichcraft-0.6.1
C:\Users\Boss\Downloads>pip install pyWinHook
Collecting pyWinHook
Using cached pyWinhook-1.6.2.zip (15 kB)
Requirement already satisfied: pywin32 in c:\users\boss\appdata\local\programs\python\python39\lib\site-packages (from pyWinHook) (300)
Using legacy 'setup.py install' for pyWinHook, since package 'wheel' is not installed.
Installing collected packages: pyWinHook
Running setup.py install for pyWinHook ... error
pip install pyWinhook
то выдает ошибку выше указанную