我就是按照这里面的教程,依旧有问题
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$