libusb / hidapi

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

hidapi installation under windows / Python virtual environment #705

Closed Snolte1001 closed 1 month ago

Snolte1001 commented 1 month 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 1 month ago

See #267