PyUSB后端无法访问 [英] PyUSB backend not accessible

查看:77
本文介绍了PyUSB后端无法访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,我正在尝试运行本教程中可用的简单脚本; USB正在导入,但是当我尝试搜索设备时,出现以下错误,请帮助

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

推荐答案

您需要安装libusb-1.0,libusb-0.1或openusb作为pyusb的后端.这是Windows机器吗?

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

如果是这样,您可以在此处下载一个简单的安装程序: http://www.craftedge.com/products/libusb.html

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

这篇关于PyUSB后端无法访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆