-
该上代理上代理
git config --global http.proxy 192.168.1.7:1080
export https_proxy=192.168.1.7:1080
export http_proxy=192.168.1.7:1080
-
更新APT源,这里使用代理方法 ,所有的apt-update或者apt-install都可以加这个后缀
有时会一直卡着,那就断开ubuntu的网络,重连一下wireless,重连成功后一段时间肯定是正常的
sudo apt-get update -o Acquire::http::proxy="http://192.168.31.88:7890"
-
更新一些用到的包
sudo apt-get install -y make build-essential zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm tk-dev libc6-dev gcc libssl-dev
sudo apt-get install git wget flex bison gperf python python-pip python-setuptools cmake ninja-build ccache libffi-dev libssl-dev dfu-util
-
将python切换到python3.6
cd /usr/bin/
sudo rm python
sudo ln -s python3.6 python
-
安装pip
1.sudo rm /var/lib/dpkg/lock
sudo rm /var/lib/dpkg/lock-frontend
#先删除了apt的锁,有可能apt被锁住了提示 Could not get lock /var/lib/dpkg/lock-frontend 问题
1.wget https:
2.python get-pip.py #安装pip,这里提示错误,找不到 distutils
3.sudo apt-get install python3-distutils #安装distutils
4.sudo apt-get install python3.6-dev #安装py36的dev
-
拉取SDK,指定4.4版本,子模块都拉取,并将名字定义成esp-idf-4.4
git clone -b v4.4 --recursive https:
-
拉取SDK需要用到的包
python -m pip install --user -r $IDF_PATH/requirements.txt