pyocd库找不到libusb python库

问题描述

我已经在Windows 10上使用powershell core和python 3.8成功安装了pyocd和libusb,但是当我使用PS C:\Users\mahya> python -m pyocd list 0003915:WARNING:common:STLink and CMSIS-DAPv2 probes are not supported because no libusb library was found. No available debug probes are connected 命令时,它会引发此错误

{{1}}

这是已安装的python库的列表:

enter image description here

解决方法

您应该将libusb.dll(libusb动态链接库)复制到python安装路径。 注意:如果您是从Windows商店下载python,则应将libusb.dll复制到C:/windows/system32目录中。