栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

esp32 linux开发环境搭建

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

esp32 linux开发环境搭建

使用make menuconfig和 make all make flash的是v3.3版本

由于环境搭建比较简单,官方文档比较详细,这里不在赘述,只写了可能出问题点
################################################################################################################
1.git clone --recursive https://github.com/espressif/esp-idf.git
git checkout release/v3.3
如果 没有使用--recursive(使用这个参数可能clone失败,我试了一下没clone下来)
cd esp-idf
git submodule update --init

################################################################################################################
2.https://docs.espressif.com/projects/esp-idf/zh_CN/release-v3.3/get-started/linux-setup.html
安装依赖
sudo apt-get install git wget flex bison gperf python3 python3-pip python3-setuptools cmake ninja-build ccache libffi-dev libssl-dev
更换Python版本
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10 && alias pip=pip3
安装Python依赖
python -m pip install --user -r $IDF_PATH/requirements.txt

安装依赖可能出现一下问题,解决办法如下:

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-w03bayk2/cryptography/
You are using pip version 8.1.1, however version 21.2.4 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

参考这个https://blog.csdn.net/qq_29935433/article/details/104982952
    使用python -m pip install --upgrade pip升级失败
    使用python -m pip install -U --force-reinstall pip依然失败
    使用pip install --user --upgrade pip还是失败

还有说是因为源的问题,换了源也没任何作用
解决方案:

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo python3 get-pip.py --force-reinstall
################################################################################################################

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/286291.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号