|
|

楼主 |
发表于 2025-6-25 00:31:04
|
显示全部楼层
esp-idf 5.4.1安装到最后报错,是啥问题啊,我电脑已经装了python 3.13.5
日志如下:
2025-06-24 22:51:12.704 --------
2025-06-24 22:51:12.708 ESP-IDF Python Virtual environment does not exist, creating the environment: D:\Espressif\tools\idf-python\3.11.2\python.exe -m venv "D:\Espressif\python_env\idf5.4_py3.11_env"
2025-06-24 22:51:21.298 Done, exit code=0
2025-06-24 22:51:21.298 --------
2025-06-24 22:51:21.298 Running command: D:\Espressif\tools\idf-python\3.11.2\python.exe -m venv "D:\Espressif\python_env\idf5.4_py3.11_env"
2025-06-24 22:51:21.298 --------
2025-06-24 22:51:21.330 Installing Python environment:D:\Espressif\tools\idf-python\3.11.2\python.exe "D:\Espressif\frameworks\esp-idf-v5.4.1\tools\idf_tools.py" "--idf-path" "D:\Espressif\frameworks\esp-idf-v5.4.1" install-python-env
2025-06-24 22:51:23.666 Done, exit code=1
2025-06-24 22:51:23.666 --------
2025-06-24 22:51:23.666 Running command: D:\Espressif\tools\idf-python\3.11.2\python.exe "D:\Espressif\frameworks\esp-idf-v5.4.1\tools\idf_tools.py" "--idf-path" "D:\Espressif\frameworks\esp-idf-v5.4.1" install-python-env
Python 3.11.2
WARNING: The following issue occurred while accessing the ESP-IDF version file in the Python environment: [Errno 2] No such file or directory: 'D:\\Espressif\\python_env\\idf5.4_py3.11_env\\idf_version.txt'. (Diagnostic information. It can be ignored.)
Upgrading pip...
ERROR: Can not perform a '--user' install. User site-packages are not visible in this virtualenv.
Traceback (most recent call last):
File "D:\Espressif\frameworks\esp-idf-v5.4.1\tools\idf_tools.py", line 3268, in <module>
main(sys.argv[1:])
File "D:\Espressif\frameworks\esp-idf-v5.4.1\tools\idf_tools.py", line 3260, in main
action_func(args)
File "D:\Espressif\frameworks\esp-idf-v5.4.1\tools\idf_tools.py", line 2667, in action_install_python_env
subprocess.check_call(run_args, stdout=sys.stdout, stderr=sys.stderr, env=env_copy)
File "subprocess.py", line 413, in check_call
subprocess.CalledProcessError: Command '['D:\\Espressif\\python_env\\idf5.4_py3.11_env\\Scripts\\python.exe', '-m', 'pip', 'install', '--upgrade', 'pip']' returned non-zero exit status 1.
2025-06-24 22:51:23.666 --------
2025-06-24 22:51:23.666 Message box (OK):
安装过程遇到错误(可能并不严重)。 退出代码: 1
2025-06-24 22:51:26.644 User chose OK.
2025-06-24 22:51:26.690 Message box (Yes/No):
已创建安装日志,其中可能包含有关该问题的详细信息。
是否需要查看安装日志?
2025-06-24 22:51:31.846 User chose Yes.
2025-06-24 22:51:32.017 CurStepChanged raised an exception.
2025-06-24 22:51:32.353 Need to restart Windows? No
2025-06-24 22:51:32.374 Deinitializing Setup.
|
|