Pyusb on windows - no backend available(Windows 上的 Pyusb - 没有可用的后端)
问题描述
我正在尝试通过 USB 将我的 Python 应用程序接口与 NFC 设备连接.最好的选择似乎是 PyUSB,但我无法让它连接到 libusb 后端.我不断得到
I'm trying to have my Python application interface with an NFC device via USB. The best option seems to be PyUSB, but I can't get it to connect to the libusb backend. I keep getting
ValueError:没有可用的后端
ValueError: No backend available
我查看了堆栈跟踪,发现 usb/backend/libusb10.py
(它是 pyusb 的一部分)正在尝试加载 libusb-1.0.dll
用作后端,但它找不到它.不是不在我的路径上,而是根本不在我的电脑上!
I've looked at the stack trace, and found that usb/backend/libusb10.py
(which is part of pyusb) is trying to load libusb-1.0.dll
to use as the backend, but it can't find it. It's not that it's not in my path, it's not on my computer at all!
我已经安装了 libusb-win32,但生成的目录似乎只包含 libusb0.dll.libusb-1.0.dll 在哪里???!
I have installed libusb-win32, but the resulting directory only seems to include libusb0.dll. Where is libusb-1.0.dll???!
我很想知道从哪里获取该 dll,甚至想知道让 PyUSB 在 Windows 7 上运行的不同建议.
I would love to know either where to get that dll, or even a different suggestion to get PyUSB to work on Windows 7.
推荐答案
下载安装libusb-win32-devel-filter-1.2.6.0.exe.它应该可以工作.
Download and install libusb-win32-devel-filter-1.2.6.0.exe. It should work.
这篇关于Windows 上的 Pyusb - 没有可用的后端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Windows 上的 Pyusb - 没有可用的后端


基础教程推荐
- 在 Python 中,如果我在一个“with"中返回.块,文件还会关闭吗? 2022-01-01
- 使用PyInstaller后在Windows中打开可执行文件时出错 2022-01-01
- 筛选NumPy数组 2022-01-01
- 用于分类数据的跳跃记号标签 2022-01-01
- 线程时出现 msgbox 错误,GUI 块 2022-01-01
- 何时使用 os.name、sys.platform 或 platform.system? 2022-01-01
- Python kivy 入口点 inflateRest2 无法定位 libpng16-16.dll 2022-01-01
- 如何让 python 脚本监听来自另一个脚本的输入 2022-01-01
- 如何在海运重新绘制中自定义标题和y标签 2022-01-01
- Dask.array.套用_沿_轴:由于额外的元素([1]),使用dask.array的每一行作为另一个函数的输入失败 2022-01-01