装ESP32的环境是我遇到过最闹心的事,没有之一

djqlyy
Posts: 52
Joined: Wed Oct 23, 2019 12:46 am

装ESP32的环境是我遇到过最闹心的事,没有之一

Postby djqlyy » Tue Dec 01, 2020 2:35 am

装ESP32的环境是我遇到过最闹心的事,没有之一,别的软件不管简单、复杂按步骤一步一步来都没遇到过什么问题,只有这个,都是一步一步来的,装了几遍,也都跟网上说的一样,没有出错啊,结果都装了一个星期了也跑不起来!!!VSCODE不行,换ECLIPSE还没开始装也出问题!!!之前用ESP32的时候还行,用的都是老的编译链,现在用ESP32S2原来的SDK应该不行了,按新的教程重新装,再也弄不好了!!!!

ESP_morris
Posts: 290
Joined: Wed Sep 05, 2018 6:23 am

Re: 装ESP32的环境是我遇到过最闹心的事,没有之一

Postby ESP_morris » Tue Dec 01, 2020 3:04 am

这里有个安装视频,可以参考一下

https://www.bilibili.com/video/BV1Ke411 ... 4803799716

djqlyy
Posts: 52
Joined: Wed Oct 23, 2019 12:46 am

Re: 装ESP32的环境是我遇到过最闹心的事,没有之一

Postby djqlyy » Tue Dec 01, 2020 3:37 am

使用命令行编译的可以的,但开发的话终究还是要装个编辑器的啊,不然太不方便了,
VSCODE也好,ECLIPSE也行,随便哪个都行,怎么装有文档或视频吗?
我按网上不止一个文档说的,实在也没漏掉什么,就是跑不起来!!!

talpachen
Posts: 2
Joined: Wed Dec 02, 2020 2:32 am

Re: 装ESP32的环境是我遇到过最闹心的事,没有之一

Postby talpachen » Wed Dec 02, 2020 2:35 am

djqlyy wrote:
Tue Dec 01, 2020 3:37 am
使用命令行编译的可以的,但开发的话终究还是要装个编辑器的啊,不然太不方便了,
VSCODE也好,ECLIPSE也行,随便哪个都行,怎么装有文档或视频吗?
我按网上不止一个文档说的,实在也没漏掉什么,就是跑不起来!!!
Windows用多了的后果。

ESP_Bob
Posts: 80
Joined: Fri Nov 27, 2020 12:52 pm

Re: 装ESP32的环境是我遇到过最闹心的事,没有之一

Postby ESP_Bob » Wed Dec 02, 2020 11:53 am

可以用 WSL+gitee 装,同时把 pip 源改到国内 ,10 分钟搞定。
教程参考:https://blog.csdn.net/qq_20515461/artic ... /108818485
视频参考:https://www.bilibili.com/video/BV1QK4y1 ... 9968702025

13435374944
Posts: 3
Joined: Mon May 23, 2022 10:02 am

Re: 装ESP32的环境是我遇到过最闹心的事,没有之一

Postby 13435374944 » Mon May 23, 2022 10:18 am

ESP_Bob wrote:
Wed Dec 02, 2020 11:53 am
可以用 WSL+gitee 装,同时把 pip 源改到国内 ,10 分钟搞定。
教程参考:https://blog.csdn.net/qq_20515461/artic ... /108818485
视频参考:https://www.bilibili.com/video/BV1QK4y1 ... 9968702025
我就是按照这里面的教程,依旧有问题

ye@DESKTOP-H417B4O:~/esp-idf/examples/get-started/hello_world$ . $HOME/esp-idf/export.sh
Detecting the Python interpreter
Checking "python3" ...
Python 3.8.10
"python3" has been detected
Checking Python compatibility
Checking other ESP-IDF version.
Adding ESP-IDF tools to PATH...
Using Python interpreter in /home/ye/.espressif/python_env/idf5.0_py3.8_env/bin/python
Checking if Python packages are up to date...
Skipping the download of /home/ye/.espressif/espidf.constraints.v5.0.txt because it was downloaded recently. If you believe that this is causing you trouble then remove it manually and re-run your install script.
Constraint file: /home/ye/.espressif/espidf.constraints.v5.0.txt
Requirement files:
- /home/ye/esp-idf/tools/requirements/requirements.core.txt
Python being checked: /home/ye/.espressif/python_env/idf5.0_py3.8_env/bin/python
Python requirements are satisfied.
Added the following directories to PATH:
/home/ye/esp-idf/components/esptool_py/esptool
/home/ye/esp-idf/components/espcoredump
/home/ye/esp-idf/components/partition_table
/home/ye/esp-idf/components/app_update
Done! You can now compile ESP-IDF projects.
Go to the project directory and run:

idf.py build

ye@DESKTOP-H417B4O:~/esp-idf/examples/get-started/hello_world$ idf.py build
Executing action: all (aliases: build)
Traceback (most recent call last):
File "/home/ye/esp-idf/tools/idf.py", line 823, in <module>
main()
File "/home/ye/esp-idf/tools/idf.py", line 757, in main
cli(sys.argv[1:], prog_name=PROG, complete_var=SHELL_COMPLETE_VAR)
File "/home/ye/.espressif/python_env/idf5.0_py3.8_env/lib/python3.8/site-packages/click/core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "/home/ye/.espressif/python_env/idf5.0_py3.8_env/lib/python3.8/site-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/home/ye/.espressif/python_env/idf5.0_py3.8_env/lib/python3.8/site-packages/click/core.py", line 1691, in invoke
return _process_result(rv)
File "/home/ye/.espressif/python_env/idf5.0_py3.8_env/lib/python3.8/site-packages/click/core.py", line 1628, in _process_result
value = ctx.invoke(self._result_callback, value, **ctx.params)
File "/home/ye/.espressif/python_env/idf5.0_py3.8_env/lib/python3.8/site-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/home/ye/esp-idf/tools/idf.py", line 648, in execute_tasks
task(ctx, global_args, task.action_args)
File "/home/ye/esp-idf/tools/idf.py", line 229, in __call__
self.callback(self.name, context, global_args, **action_args)
File "/home/ye/esp-idf/tools/idf_py_actions/core_ext.py", line 28, in build_target
ensure_build_directory(args, ctx.info_name)
File "/home/ye/esp-idf/tools/idf_py_actions/tools.py", line 191, in ensure_build_directory
os.makedirs(build_dir)
File "/usr/lib/python3.8/os.py", line 223, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/home/ye/esp-idf/examples/get-started/hello_world/build'
ye@DESKTOP-H417B4O:~/esp-idf/examples/get-started/hello_world$

ESP_Bob
Posts: 80
Joined: Fri Nov 27, 2020 12:52 pm

Re: 装ESP32的环境是我遇到过最闹心的事,没有之一

Postby ESP_Bob » Wed May 25, 2022 3:39 am

PermissionError: [Errno 13] Permission denied: '/home/ye/esp-idf/examples/get-started/hello_world/build'

你的错误信息显示,你的 python 没有权限在你的机器上创建 build 文件夹,所以导致编译中断

需要查一下你账户的读写权限问题,或者根据以上信息检索相关的通用解决方案

diyilala
Posts: 13
Joined: Wed Apr 20, 2022 3:22 am

Re: 装ESP32的环境是我遇到过最闹心的事,没有之一

Postby diyilala » Tue May 31, 2022 1:04 am

用VScode加那个离线安装的文件装,很快,配置都不用自己动手,在线安装的太容易出问题了

loveyond
Posts: 4
Joined: Fri May 20, 2022 1:02 am

Re: 装ESP32的环境是我遇到过最闹心的事,没有之一

Postby loveyond » Tue May 31, 2022 2:40 am

哈哈,win程序员都是如此,另外E文不好也是问题

不过我8266,32都装好了,别问我怎么装的,我是稀里糊涂就装好了,装的过程中也遇到莫名的问题,但最后都装好了

Who is online

Users browsing this forum: No registered users and 64 guests