Troubleshooting Mbed Python Errors

If you encounter problems importing or building mbed projects, please try resetting your Python environment as shown on this page.

  1. Clear the Tools->Options->VisualGDB->General->Tools->Python Directory setting:
  2. Delete the %LOCALAPPDATA%\VisualGDB\Python* directories.
  3. Restart Visual Studio and open the Mbed Project Wizard. When prompted to install Python, try installing the latest Python 3:

This will install a version of Python that was tested with mbed scripts on our side, and it should work exactly as described in our mbed tutorials.