【问题标题】:Collecting pyHook Could not find a version that satisfies the requirement pyHook收集pyHook 找不到满足pyHook要求的版本
【发布时间】:2020-06-13 22:13:51
【问题描述】:

我是 Ubuntu 操作系统,尝试在需要安装 pyHook 模块的 pycharm 中安装 this python 脚本时出现此错误,但出现此错误:

Collecting pyHook

  Could not find a version that satisfies the requirement pyHook (from versions: )
No matching distribution found for pyHook

在终端中也出现此错误:

so@so-notebook:~/Desktop/trash/t$ sudo python -m  pip install pyHook
[sudo] password for so: 
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
WARNING: The directory '/home/so/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
ERROR: Could not find a version that satisfies the requirement pyHook (from versions: none)
ERROR: No matching distribution found for pyHook

我的 Ubuntu 操作系统版本是:

so@so-notebook:~/Desktop/trash/t$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.4 LTS
Release:    18.04
Codename:   bionic

谢谢。

【问题讨论】:

    标签: python ubuntu pip


    【解决方案1】:

    pyHook 不能从 PyPI 安装,您需要从这里获取它:https://sourceforge.net/projects/pyhook/files/

    【讨论】:

    • 我认为这个模块只在windows下工作,在linux下不行!
    • 似乎是这样。还有其他库可以在 Linux 上运行,例如 pyautogui,但您需要调整特定的脚本才能使用它。
    猜你喜欢
    • 1970-01-01
    • 2023-03-20
    • 2021-12-25
    • 2018-10-13
    • 2019-07-18
    • 2020-04-15
    • 2015-11-24
    • 2013-08-16
    • 2018-07-21
    相关资源
    最近更新 更多