NXP MCU 技术论坛
直播中

李梅

8年用户 1440经验值
私信 关注
[问答]

esp v4.2上的install.sh在最近使用python 3.11的Debian上失败了的原因?

由于 gevent 中的构建失败,esp 4.2 无法在最近的 debian 系统上运行。是否有解决方法或解决方法?

      src/gevent/_greenlet_primitives.c:216:12: 致命错误: longintrepr.h: 没有那个文件或目录

代码:全选
Isrc/gevent -Isrc/gevent/libev -Isrc/gevent/resolver -I. -I/home/ico/.espressif/python_env/idf4.2_py3.11_env/include -I/usr/include/python3.11 -c src/gevent/_greenlet_primitives.c -o build/temp.linux-x86_64-cpython-311/src/gevent/_greenlet_primitives.o
      src/gevent/_greenlet_primitives.c:216:12: fatal error: longintrepr.h: No such file or directory
        216 |   #include "longintrepr.h"
            |            ^~~~~~~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for gevent
Failed to build gevent
ERROR: Could not build wheels for gevent, which is required to install pyproject.toml-based projects
Traceback (most recent call last):
  File "/opt/toolchains/esp-idf-4.2/tools/idf_tools.py", line 1492, in
    main(sys.argv[1:])
  File "/opt/toolchains/esp-idf-4.2/tools/idf_tools.py", line 1488, in main
    action_func(args)
  File "/opt/toolchains/esp-idf-4.2/tools/idf_tools.py", line 1215, in action_install_python_env
    subprocess.check_call(run_args, stdout=sys.stdout, stderr=sys.stderr)
  File "/usr/lib/python3.11/subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/ico/.espressif/python_env/idf4.2_py3.11_env/bin/python', '-m', 'pip', 'install', '--no-warn-script-location', '-r', '/opt/toolchains/esp-idf-4.2/requirements.txt']' returned non-zero exit status 1.

更多回帖

发帖
×
20
完善资料,
赚取积分