我正在尝试下载pyHook模块,以完成学校的作业。我试图寻找问题的答案,但没有找到。当我尝试点安装python-pyHook时,我得到了:

pip install python-pyHook
Downloading/unpacking python-pyHook
   Could not find any downloads that satisfy the requirement python-pyHook
  Cleaning up...
 No distributions at all found for python-pyHook
 Storing debug log for failure in /home/goofy/.pip/pip.log


当我尝试sudo apt-get install python-pyHook时,我得到:

sudo apt-get install python-pyHook
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python-pyHook


我已经已经运行了该命令。

sudo add-apt-repository universe


我这样做是完全错误的吗?这些是我可以找到的关于如何在Ubuntu 14上安装pyHook的唯一实现。谢谢您的宝贵时间。

最佳答案

pyHook仅适用于Windows。

pyHook的Linux实现称为pyxhook。您可以找到存储库here

10-02 07:29