升级pyudev问题

升级pyudev问题

我尝试将pyudev软件包从 0.15 更新到 0.16.x 或更高版本,但显示以下消息:

$ sudo pip install pyudev 0.21.0 -U
Collecting pyudev
  Using cached https://files.pythonhosted.org/packages/bc/a2/31a07829acea8e70a28c247f43fa5d981229ae0f9edfeddedf52de00709b/pyudev-0.21.0.tar.gz
Collecting 0.21.0
  Could not find a version that satisfies the requirement 0.21.0 (from versions: )
No matching distribution found for 0.21.0

知道如何解决吗?

笔记:同样的情况也发生在dnspython.

答案1

您输入的命令格式错误。有效的需求说明符是:

  • packagename
  • packagename==version
  • packagename>=version(或者<=
  • packagename>version(或者<

添加==确切版本说明符的符号:

$ pip install pyudev==0.21.0

相关内容