【问题标题】:What is a shared library, and how do you manually install a .dll for Python?什么是共享库,如何为 Python 手动安装 .dll?
【发布时间】:2020-07-09 01:52:37
【问题描述】:

我正在尝试通过 Python 控制我的 Elgato Stream Deck,并尝试按照此处的步骤操作:https://python-elgato-streamdeck.readthedocs.io/en/stable/pages/backend_libusb_hidapi.html

这里有进一步的说明: https://github.com/libusb/hidapi#build-instructions

不幸的是,我什么都做不了,而且我知道我没有正确设置,因为我不确定如何处理下载的 .dll 和 .lib 文件。在 Pycharm 中,我总是得到错误:

('Probe failed to find any functional HID backend.', {'libusb': TransportError("No applicable LibUSB HIDAPI library found on this system. Is the 'hidapi.dll' library installed?")})

我能找到的说明似乎比我知道的要高级。

感谢您的任何帮助或建议。

【问题讨论】:

    标签: python dll shared-libraries hid


    【解决方案1】:

    假设你在 Fedora 上?我已经看到了这个错误,下面应该可以解决这个问题:

    sudo dnf install hidapi
    

    【讨论】:

      猜你喜欢
      • 2016-06-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-05-01
      • 1970-01-01
      • 2016-05-26
      • 1970-01-01
      相关资源
      最近更新 更多