title: how to install hidapi on windows with cygwin
body: <p>I downloaded the source code of the back-end from <a href="https://github.com/libusb/hidapi" rel="nofollow noreferrer">https://github.com/libusb/hidapi</a></p>
  <p>I used to install it cygwin following the instruction</p>
  <pre><code>./bootstrap
  ./configure
  make
  make install
  </code></pre>
  <p>I installed hid using pip install hid</p>
  <p>but once I try</p>
  <p>import hid</p>
  <p>in python I get:</p>
  <pre><code>raise ImportError(error)
  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
  
  </code></pre>
  <p>Searching where Cygwin had installed the library I found that in C/cygwin64/usr/local/include/hidapi was the header hidapi.h
  and in C/cygwin64/usr/local/lib/libhidapi.a , libhidapi.dll.a, libhidapi.la the objects</p>
  <p>I also tried to follow this answer but it did not work <a href="https://stackoverflow.com/questions/62620247/how-to-determine-where-to-install-hidapi-dll">How to Determine where to install hidapi.dll?</a></p>