The easiest option for IDF 3.3 and later is to use the official Docker image: https://docs.espressif.com/projects/esp ... image.html. This image includes ESP-IDF and all the required tools, so building the project should be as simple as 'idf.py build'.