Install ESP-IDF

  1. To install ESP-IDFEspressif IoT Development Framework, clone the esp-idf repository for the specific version of the ESP-IDF; currently version 3.2 is supported. You can install this anywhere on the machine, but the following example shows the home directory as the location.

cd ~

git clone -b v3.2 --recursive https://github.com/espressif/esp-idf.git

This command creates the directory called ~/esp-idf.

If the esp-idf local repository was already cloned, but is not up-to-date, clean up the local files first, and then fetch the latest files, as shown below:

cd ~/esp-idf

rm -rf *

git checkout .

git fetch -p

git checkout v3.2

git submodule update --init --recursive

  1. Set up the path to ESP-IDF by setting the environment variable IDF_PATH to the top of the esp-idf tree. Since that is your current directory per these instructions, issue the following:

export IDF_PATH=~/esp-idf

  1. Install the required Python packages required by ESP-IDF, which are located in the $IDF_PATH/requirements.txt file. Install them as follows:

pip install --upgrade pip

sudo apt-get install libssl-dev

python -m pip install --user -r $IDF_PATH/requirements.txt

 

Please click here to let us know how we're doing. Thank you.