【发布时间】: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
谢谢。
【问题讨论】: