Detailed map traversal, teach you to master the complex gremlin query debugging method>>>
Pyuserinput installation failed
It is found that pyhook (pyhook is a library used for keyboard, mouse and other level event monitoring. The normal operation of this library needs the API support of operating system such as Python com.) Unable to install. I don’t know if it is because this library can be used for some evil purposes. The search found that the direct PIP install pyhook is unable to find the relevant package, but you can compile and install the source code, you can https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyhook Here, you can download directly to the. WHL file, which can be installed as a parameter of PIP install
Directly input
PIP install pyhook-1.5.1-cp36-cp36m-win_ AMD64. WHL
doesn’t seem to work. After being prompted, useG:: py_ opencv\venv\Scripts\python.exe -m pip install pyHook-1.5.1-cp36-cp36m-win_ AMD64. WHL
the first parameter is the Python interpreter. The – M option allows Python to run a module as a script. PIP install is followed by the package name to be installed
pyHook-1.5.1-cp36-cp36m-win_ amd64.whl
Pyhook: library name 1.5.1: version number cp3.6m: cpython3.6, the encoding is ucs2, ucs2 thinks that each character takes up 2 bytes, ucs4 thinks that each byte takes up 4 characters, which is the encoding form of Unicode. win_ AMD64: Windows 64 bit environment WHL: compressed package, which contains py file and compiled PYD file. You can use pip to install
To view the computer system environment, right-click “my computer” – & gt“ Properties “view
Then directly input PIP install pyuserinput in the command line or download and install it in pychar( Need to install pywin32 first
The pyhook downloaded above is based on python2, and an error will be reported in python3: typeerror: mouseswitch() missing 8 required positional arguments: 'MSG', 'x', 'y', 'data', 'flags',' time ',' hWnd ', and' window '_ Name '
or attributeerror:' hookmanager 'object has no attribute' keyboard_ hook'
Thank you for installing pyhook in python3.5 to solve the problem of [typeerror: mouseswitch() missing 8 required positional arguments: ‘MSG’, ‘x’, ‘y’, ‘data’, ‘time’, ‘hWnd’, and ‘window]_ This is a mistake[ Using Python 3.5/3.6 to monitor the key operation in any window of the machine] (using Python 3.5/3.6 to monitor the key operation in any window of the machine) provides solutions
Module needed: extension library pyhook_ Py3k (note, don’t use pyhook), pywin32. The first step is to install pywin32, address: http://www.lfd.uci.edu/~gohlke/pythonlibs/#pywin32 Second, Download pyhook_ Py3k, address: https://github.com/Answeror/pyhook_ Py3k step 3, Download swig.exe, address: http://www.swig.org/download.html ==>. ZIP format decompression step 4, decompression pyhook_ Py3k, and compile, command: Python setup.py build_ Ext — swig =.. – swigwin-3.0.12-swig.exe. You can modify the path of swig.exe according to the actual situation. In addition, you’d better have vc2008 installed on this machine. Step 5, install the compiled pyhook_ Py3k, command: PIP install
Then you can operate normally~
Similar Posts:
- Module not found error: wrong solution of no module named ‘windows’ and no module named’ win32API ‘
- Solution to Anaconda installation scene error
- ImportError: No module named pil
- Microsoft Visual C++ 14.0 is required [Two Method to Solve]
- Pyspider Install ERROR: Complete output from command python setup.py egg_info:…
- Solution of pymssql installation error under win
- Python ImportError: No module named win32com.client [How to Solve]
- ModuleNotFoundError: No module named ‘win32api’
- Windows Python Install: requires numpy+mkl & ImportError: cannot import name NUMPY_MKL
- numpy.distutils.system_info.NotFoundError: no lapack/blas resources found problem solved