'Pyusb isn't working

I got Pyusb with pip install pyusb but when I try to import usb.core I get:

Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import usb.core
  File "C:\Users\Owner\Desktop\usb.py", line 1, in <module>
    import pyusb
  ImportError: No module named 'pyusb'

I also tried installing pyusb-1.0.2.tar.gz manuall with pip, but that didn't fix the issue.



Solution 1:[1]

I think you want import usb instead of import pyusb.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Chris Sears