At the time of writing there may be issues installing pyocd for Python 3.12. If you experience issues such as failing to build wheel for hidapi, try reverting to Python 3.10 or 3.11.
We have also seen issue where pyocd reports an error during install, requiring VS C++ build tools. Be sure to install the C++ build tools using the link in the error. If the C++ build tools install fail then try to temporarily disable virus checking (or consult with your IT department) as we have seen some antivirus block some VS scripts used during build tool installation.