Using esp_efuse_mac_get_default() in IDE 2.X to get ESP8266/ESP32 MAC address

You don't need to install anything. It's included in the ESP32 Arduino Core.