我安装了一个CP2130库,当我开始使用它时,我发现了这个问题,我不知道要解决什么,这是我的代码:
import cp2130
from cp2130.data import *
cp2130.find()
错误从3rd ligne开始。
Traceback (most recent call last):
File "C:\Users\uic78128\Downloads\stage\test_with_cp.py", line 6, in <module>
cp2130.find()
File "C:\LegacyApp\Python36\lib\site-packages\cp2130-1.1.1-py3.6.egg\cp2130\__init__.py", line 32, in find
from cp2130.usb import libusb1 as usb
File "C:\LegacyApp\Python36\lib\site-packages\cp2130-1.1.1-py3.6.egg\cp2130\usb\libusb1\__init__.py", line 17, in <module>
from cp2130.usb.libusb1.core import *
File "C:\LegacyApp\Python36\lib\site-packages\cp2130-1.1.1-py3.6.egg\cp2130\usb\libusb1\core.py", line 18, in <module>
from cp2130.usb.libusb1.hotplug import HotplugListener, HotpluggedDevice
File "C:\LegacyApp\Python36\lib\site-packages\cp2130-1.1.1-py3.6.egg\cp2130\usb\libusb1\hotplug.py", line 19, in <module>
import usb1
File "<frozen importlib._bootstrap>", line 961, in _find_and_load
File "<frozen importlib._bootstrap>", line 950, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 646, in _load_unlocked
File "<frozen importlib._bootstrap>", line 616, in _load_backward_compatible
File "C:\LegacyApp\Python36\lib\site-packages\libusb1-1.8-py3.6.egg\usb1\__init__.py", line 61, in <module>
from . import libusb1
File "<frozen importlib._bootstrap>", line 961, in _find_and_load
File "<frozen importlib._bootstrap>", line 950, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 646, in _load_unlocked
File "<frozen importlib._bootstrap>", line 616, in _load_backward_compatible
File "C:\LegacyApp\Python36\lib\site-packages\libusb1-1.8-py3.6.egg\usb1\libusb1.py", line 192, in <module>
libusb = _loadLibrary()
File "C:\LegacyApp\Python36\lib\site-packages\libusb1-1.8-py3.6.egg\usb1\libusb1.py", line 166, in _loadLibrary
return dll_loader('libusb-1.0' + suffix, **loader_kw)
File "C:\LegacyApp\Python36\lib\ctypes\__init__.py", line 348, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found