MacOS安装nrfutil

参考:https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_nrfutil%2FUG%2Fnrfutil%2Fnrfutil_intro.html

pip install nrfutil

macOS: pip install --ignore-installed six nrfutil

~~~~~~~~~~~~~

Installing from PyPI
nRF Util is available as a package in the Python Package Index (PyPI) and can be downloaded and installed directly using the Python installer program pip.

Enter the following command to install the latest published version from PyPI:
pip install nrfutil
This command installs nRF Util and all required packages.
When installing on macOS, you might get an error about the Python module six. In this case, enter the following command instead:
pip install --ignore-installed six nrfutil
If you are running nRF Util on Windows, the runtime libraries targeted during the library build must be present when running code using the library. The following errors indicate that the runtime libraries are not available:
Missing MSVC*120.DLL or MSVC*140.DLL
RuntimeError: Could not load shared library <path>/pc_ble_driver_shared.dll : '[Error 193] %1 is not a valid Win32 application
In this case, install the Visual C++ redistributable packages for Visual Studio 2013 or Visual Studio 2015. Select the version that corresponds to the architecture of your Python installation (x86 or x64).


````s
分享