MacOS Problem: "bad interpreter: /usr/local/opt/python@2/bin/python2.7: no such file or directory"

Seems like you have globally installed PlatformIO with your Python 2.7 pip installation? I would recommend to pip uninstall platformio and then pip3 install platformio with the Python3 version of pip.

1 Like