Error 127 when trying to Compile

Hello guys! I am trying to build a smart LED-Strip(WS2812) using Esphome and an Esp32, but everytime I try to build, I get the following Error:

Compiling .pioenvs/esphome-web-9f6c10/src/esphome/components/api/api_connection.cpp.o
sh: 1: xtensa-esp32-elf-g++: not found
Compiling .pioenvs/esphome-web-9f6c10/src/esphome/components/api/api_frame_helper.cpp.o
sh: 1: xtensa-esp32-elf-g++: not found
Compiling .pioenvs/esphome-web-9f6c10/src/esphome/components/api/api_pb2.cpp.o
sh: 1: xtensa-esp32-elf-g++: not found
*** [.pioenvs/esphome-web-9f6c10/src/esphome/components/api/api_connection.cpp.o] Error 127
*** [.pioenvs/esphome-web-9f6c10/src/esphome/components/api/api_frame_helper.cpp.o] Error 127
*** [.pioenvs/esphome-web-9f6c10/src/esphome/components/api/api_pb2.cpp.o] Error 127
Compiling .pioenvs/esphome-web-9f6c10/src/esphome/components/api/api_pb2_service.cpp.o
sh: 1: xtensa-esp32-elf-g++: not found
*** [.pioenvs/esphome-web-9f6c10/src/esphome/components/api/api_pb2_service.cpp.o] Error 127
========================== [FAILED] Took 5.70 seconds ==========================

This is the Code of my ESP-Script

esphome:

  name: esphome-web-9f6c10

  friendly_name: ESPHome Web 9f6c10

esp32:

  board: esp32dev

  framework:

    type: arduino

# Enable logging

logger:

# Enable Home Assistant API

api:

  encryption:

    key: "TB5bkWDbPhwNh0MlF5HPnBAH7c/KDc4acGz8ccC8hGs="

ota:

wifi:

  ssid: !secret wifi_ssid

  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails

  ap:

    ssid: "Esphome-Web-9F6C10"

    password: "oQpMuLryLxZG"

captive_portal:

I have already tried removing the “type: arduino” line, but it didnt do anything.

My EspHome is Running on Home Assistant, which is running as an OS on a Raspberry Pi 4. Help is appreciated. Sorry if my English is bad!
Thanks for help!