在 OS X 上安装 PyUserInput

installing PyUserInput on OS X

我试图在 os x El Capitan 上安装 PyUserInput,但无法成功。 git repository instructions 中写到需要 Quartz 和 AppKit,但我不知道如何安装它们。

非常感谢您的帮助,谢谢!

欢迎来到 Stack Overflow。

每当您必须安装依赖项时,您应该查看编程语言(或操作系统)的包管理器。在您的例子中,Python 的包管理器是 pip

您可以通过 shell(命令提示符、终端等)使用包管理器

Quartz。 您可以找到文档 here

pip install -U pyobjc

AppKit。 您可以找到文档 here

pip install appkit

然后,您可以安装PyUserInput。 PyUserInput 的 repo 是 here.