Post topics, source code that relate to the Arduino Platform

User avatar
By Mark Kingston
#95001 For my Windows 11 installation the Python3 interpreter was install automatically in:
    <packages folder>\esp8266\tools\python3
But the associated platform.txt file uses {runtime.tools.python.path} for the Python interpreter and this evaluates to the package specific tools folder:
    <packages folder>\esp8266\hardware\esp8266\3.0.2\tools\python3
Where the packages folder is:
    C:\Users\Mark\AppData\Local\Arduino15\packages
What worked for me was:
  • Start a administrative command prompt
  • Change directory to <packages folder>\esp8266\hardware\esp8266\3.0.2\tools
  • Create a directory symbolic link:
    mklink /D python3 <packages folder>\esp8266\tools\python3\3.7.2-post1
Other possible options that I haven't tested:
  • Edit <packages folder>\esp8266\3.0.2\platform.io and replace all occurrences of {runtime.tools.python3.path}/python3 with {runtime.platform.path}/tools/python3/python3.
  • Install a Python3 interpreter into <packages folder>\esp8266\tools\python3\3.7.2-post1.