python QMK安装失败,并显示“No Module named hid”

6tqwzwtp  于 2023-06-04  发布在  Python
关注(0)|答案(1)|浏览(454)

我正在尝试让QMK工作。通过brew install qmk/qmk/qmk/安装后,我运行qmk setup
我得到这个错误。

qmk setup

输出:

Error: %s: %s ('ModuleNotFoundError', ModuleNotFoundError("No module named 'hid'"))
Traceback (most recent call last):
  File "/usr/local/Cellar/qmk/0.0.45/libexec/lib/python3.9/site-packages/qmk_cli/script_qmk.py", line 99, in main
    import qmk.cli  # noqa
  File "/Users/anthony/qmk_firmware/lib/python/qmk/cli/__init__.py", line 158, in <module>
    from . import console  # noqa
  File "/Users/anthony/qmk_firmware/lib/python/qmk/cli/console.py", line 9, in <module>
    import hid

macOS v10.15.7( Catalina )我通过pyenv安装了Python。这个错误的原因是什么?

piv4azn7

piv4azn71#

尝试更新QMK。我在0.0.45中遇到了同样的问题,但它在0.0.51中工作。
试试brew upgrade qmk/qmk/qmk

相关问题