libusb / hidapi

A Simple cross-platform library for communicating with HID devices
https://libusb.info/hidapi/
Other
1.65k stars 395 forks source link

hidapi installation under windows / Python virtual environment #705

Open Snolte1001 opened 5 hours ago

Snolte1001 commented 5 hours ago

hello,

I would like to use hidapi in a virtual Python environment under Windows 10, but the installation is not clear to me. I get the following error message

`import hid

vid = 0x16C0 # Change it for your device pid = 0x0486 # Change it for your device

with hid.Device(vid, pid) as h: print(f'Device manufacturer: {h.manufacturer}') print(f'Product: {h.product}') print(f'Serial Number: {h.serial}')`

ImportError: Unable to load any of the following libraries:libhidapi-hidraw.so libhidapi-hidraw.so.0 libhidapi-libusb.so libhidapi-libusb.so.0 libhidapi-iohidmanager.so libhidapi-iohidmanager.so.0 libhidapi.dylib hidapi.dll libhidapi-0.dll

Youw commented 4 hours ago

See #267