环境: Ubuntu22.04.3 减少centos7带来的glibc库为升级2.28问题 升级 软件
sudo -i \\切换root用户
apt-get update \\升级软件
apt-get install git wget libncurses-dev flex bison gperf python3 python3-pip python3-setuptools python3-serial python3-click python3-cryptography python3-future python3-pyparsing python3-pyelftools cmake ninja-build ccache libffi-dev libssl-dev python-is-python3 --fix-missing
#可以添加源pip: pip config set global.index-url http://mirrors.aliyun.com/pypi/simplepip config set global.trusted-host mirrors.aliyun.com #拉取镜像
mkdir -p ~/esp
cd ~/esp
git clone https://gitee.com/EspressifSystems/esp-gitee-tools.git
git clone https://gitee.com/EspressifSystems/esp-idf.git
git clone https://github.com/micropython/micropython.git
#拉取v5.2版本
cd esp-idf
git checkout v5.2
#安装python3.10
add-apt-repository ppa:deadsnakes/ppa apt-get update apt-get install python3.10 apt-get instal