ESP8266 Python 3 Error....

"/Users/Michael/Library/Arduino15/packages/esp8266/tools/python3/3.7.2-post1/python3" "/Users/Michael/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.0/tools/signing.py" --mode header --publickey "/Users/Michael/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.0/libraries/esp8266/examples/Blink/public.key" --out "/var/folders/0l/6wg1kcmn5k73thpn_j1y7mbw0000gn/T/arduino_build_476941/core/Updater_Signing.h"
env: python3: No such file or directory
exit status 127
Error compiling for board Adafruit Feather HUZZAH ESP8266.

I have a mac os and i am programming an ESP8266.

I have read other topics and they talk about linking the python link from the arduino folder to where you have your python installed but i haven't changed anything... just one day it stopped working. I tried to follow some examples to relink, but when i do that it says "file exists"?

I tried reinstalling python and updated the MAC, as well as delete and reinstall my arduino ide and esp8266 board definitions but nothing works. Any help would be appreciated

Bump...

Maybe try adding a path to python3 to your $PATH environment variable?

It seems that env cannot find the path to your python3 interpreter.

PATH=$PATH:/my/path/to/python3
launchctl setenv PATH $PATH

The problem is generally relayed to a broke symlink. I wonder whether the library got an update. This will delete the existing version and install the new version in a new directory. That action would also delete any manually created symlink as it would have been created within the previous version ESP8266 library path.

"file exists" means that there is already a 'python3' file in the directory you are trying to create it in or the parameters are in the wrong order. For example, perhaps you were still in the directory where python3 is actually installed?

You will need to be in Users/myusername/arduino15/packages/esp8266/tools/python3/version. Make sure there is not file named python3 in there. If there is then rename it or delete it. Then create the symlink:

ln -s /path/to/python3 python3

I'm having a similar issue, I've checked the python3 folder as indicated above but I have the following:

directory from "packages" on,

packages/esp8266/tools/python3/3.7.2-post1/python3

Is that as expected??

Yes, that's the expected path. I also have ../python3/3.7.2-post1/..., although I'm on Linux rather than Mac. However, that last python3 is surely a file?

Navigate to packages/esp8266/tools/python3/3.7.2-post1/ and then do:

cat python3

What does it say? is it something like this:

#!/usr/bin/env python3
import os
import sys

args = ["env", "python3"] + sys.argv[1:];
os.execv("/usr/bin/env", args)

If so, then this explains the "file exists" error while attempting to create a symlink of the same name. To create the symlink, this file needs to be renamed or deleted first.

I had the same problem :
https://forum.arduino.cc/index.php?topic=685916.0