Problems installing and importing pyHook

This is my first question on this site, so I hope I format it correctly. I am also very new to programming, so it doesn't matter that I don’t know, thanks!

I try to install pyHook like this and I keep getting this error message:

C:\Python27>py -2.7 -m pip install pyHook-1.5.1-cp27-cp27M-win_amd64.whl
pyHook-1.5.1-cp27-cp27M-win_amd64.whl is not a supported wheel on this platform.

I have python 2.7.14, as you can see below:

Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:25:58) [MSC v.1500 64 bit 
(AMD64)] on win32

Just in case, I tried updating the pip, and he said that it was updated. I also tried installing this version of .whl and I get the same error:

C:\Python27>py -2.7 -m pip install pyHook-1.5.1-cp27-cp27m-win32.whl
pyHook-1.5.1-cp27-cp27m-win32.whl is not a supported wheel on this platform.

From reading online I believe cp27 points to it for python 2.7 and be safe. I tried 64-bit and 32-bit files, but nothing works. If anyone could offer any solutions or advice, we will be very grateful!

+3
source share
2

Python 2.7, pyHook .

, Anaconda Python 2.7, Windows 10 - .

  • conda create -n python27 python=2.7 conda python 2.7.14.
  • activate python27
  • python -m pip install --upgrade pip 10.0.0
  • pyHook Windows.
    • : pyHook-1.5.1-cp27-cp27m-win_amd64.whl
  • pip install pyHook-1.5.1-cp27-cp27m-win_amd64.whl

, . , . , pip , , Python 2.7, Anaconda ( miniconda, )

.

+2

numpy-1.13 + mkl Microsoft Visual ++ 2008 (x64, x86 SP1 CPython 2.7), Visual ++ 2010 (x64, x86, CPython 3.4) Visual ++ 2017 (x64 x86 CPython 3.5, 3.6 3.7) .

numpy + mkl , .

Microsoft Visual ++ 2008. ,

python -m pip install numpy-1.13.3+mkl-cp27-cp27m-win_amd64.whl

python -m pip install pyHook-1.5.1-cp27-cp27m-win_amd64.whl

.

-1

Source: https://habr.com/ru/post/1689486/


All Articles