PyUSB backend not accessible

倾然丶 夕夏残阳落幕 提交于 2019-12-19 07:49:34

问题


hey i am trying to run the simple script available in the tutorial;. the usb is getting imported but when i try to search the device i get the following error,please help

>>> dev=usb.core.find()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python27\lib\site-packages\usb\core.py", line 819, in find
    raise ValueError('No backend available')
ValueError: No backend available

回答1:


You need to install libusb-1.0, libusb-0.1, or openusb as a backend to pyusb. Is this a Windows machine?

If so, you can download a simple installer here: http://www.craftedge.com/products/libusb.html



来源:https://stackoverflow.com/questions/5152133/pyusb-backend-not-accessible

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!