本人在安装ESP32的 VScode 编译环境中,出现的各种问题报错,尝试的解决办法,仅供参考!
首先安装此博客安装环境:编译环境安装方法
如果出现了各种报错,尝试以下方法:
这个目录下执行:
C:\Users\Administrator.espressif\python_env\idf4.2_py3.8_env\Scripts
python.exe -m pip install --upgrade pip -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
pip install paramiko -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
pip --default-timeout=1000 install -U matplotlib -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
pip install keras -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
easy_install pip
pip install gcovr -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
pip install idf-component-manager -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
pip install websocket_client -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
pip install cryptography -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
python.exe -m pip install --upgrade virtualenv==16.7.9 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
以上各种指令总有一个有用,如果实在不行就听天由命吧