Question

So, I want to communicate with a USB device in python, but pyusb won't install (is not compatible?) with python 2.7 and windows7. Within the current project, updating python to a newer 2.X version is no option. Pyusb can't be the only option communicating with a USB device... Any solutions/tips?

Was it helpful?

Solution

The issue you're having as you noted in your comment is not attributed to incompatibilities with Python and PyUSB, but the fact that the Python path does not get automatically added to your PATH variable in the Windows Environment Settings.

  1. Right-Click My Computer
  2. Properties
  3. Advanced System Settings
  4. Environment Variables
  5. Select Path from the System Variables box and click EDIT
  6. Add your Python path to the end of the line, preceding it with a semi-colon if needed (for eg. ;C:\Python27)
  7. Ok out all the windows
  8. Restart your command window, and install the package.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top