关于windows10下esp32开发环境搭建遇到的问题

zhangjingxun12
Posts: 7
Joined: Thu May 09, 2019 3:36 am

关于windows10下esp32开发环境搭建遇到的问题

Postby zhangjingxun12 » Thu May 09, 2019 5:13 am

依照最新esp32_idf下requirements.txt文件安装指出的依赖文件。
其中在安装cryptography文件时,其依赖程序cffi安装失败,错误如下

Code: Select all

Running setup.py install for cffi ... error
    ERROR: Complete output from command /usr/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-hwG5QJ/cffi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-I_KmIx/install-record.txt --single-version-externally-managed --compile:
    ERROR: Package libffi was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libffi.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libffi' found
    Package libffi was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libffi.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libffi' found
    Package libffi was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libffi.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libffi' found
    Package libffi was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libffi.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libffi' found
    Package libffi was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libffi.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libffi' found
    running install
    running build
    running build_py
    creating build
    creating build/lib.cygwin-2.6.0-i686-2.7
    creating build/lib.cygwin-2.6.0-i686-2.7/cffi
    copying cffi/api.py -> build/lib.cygwin-2.6.0-i686-2.7/cffi
    copying cffi/backend_ctypes.py -> build/lib.cygwin-2.6.0-i686-2.7/cffi
    copying cffi/cffi_opcode.py -> build/lib.cygwin-2.6.0-i686-2.7/cffi
    copying cffi/commontypes.py -> build/lib.cygwin-2.6.0-i686-2.7/cffi
    copying cffi/cparser.py -> build/lib.cygwin-2.6.0-i686-2.7/cffi
    copying cffi/error.py -> build/lib.cygwin-2.6.0-i686-2.7/cffi
    copying cffi/ffiplatform.py -> build/lib.cygwin-2.6.0-i686-2.7/cffi
    copying cffi/lock.py -> build/lib.cygwin-2.6.0-i686-2.7/cffi
    copying cffi/model.py -> build/lib.cygwin-2.6.0-i686-2.7/cffi
    copying cffi/pkgconfig.py -> build/lib.cygwin-2.6.0-i686-2.7/cffi
    copying cffi/recompiler.py -> build/lib.cygwin-2.6.0-i686-2.7/cffi
    copying cffi/setuptools_ext.py -> build/lib.cygwin-2.6.0-i686-2.7/cffi
    copying cffi/vengine_cpy.py -> build/lib.cygwin-2.6.0-i686-2.7/cffi
    copying cffi/vengine_gen.py -> build/lib.cygwin-2.6.0-i686-2.7/cffi
    copying cffi/verifier.py -> build/lib.cygwin-2.6.0-i686-2.7/cffi
    copying cffi/__init__.py -> build/lib.cygwin-2.6.0-i686-2.7/cffi
    copying cffi/_cffi_include.h -> build/lib.cygwin-2.6.0-i686-2.7/cffi
    copying cffi/parse_c_type.h -> build/lib.cygwin-2.6.0-i686-2.7/cffi
    copying cffi/_embedding.h -> build/lib.cygwin-2.6.0-i686-2.7/cffi
    copying cffi/_cffi_errors.h -> build/lib.cygwin-2.6.0-i686-2.7/cffi
    running build_ext
    building '_cffi_backend' extension
    creating build/temp.cygwin-2.6.0-i686-2.7
    creating build/temp.cygwin-2.6.0-i686-2.7/c
    gcc -fno-strict-aliasing -ggdb -O2 -pipe -Wimplicit-function-declaration -fdebug-prefix-map=/usr/src/ports/python/python-2.7.10-1.i686/build=/usr/src/debug/python-2.7.10-1 -fdebug-prefix-map=/usr/src/ports/python/python-2.7.10-1.i686/src/Python-2.7.10=/usr/src/debug/python-2.7.10-1 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python2.7 -c c/_cffi_backend.c -o build/temp.cygwin-2.6.0-i686-2.7/c/_cffi_backend.o
    c/_cffi_backend.c:15:17: 致命错误:ffi.h:No such file or directory
    编译中断。
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command "/usr/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-hwG5QJ/cffi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-I_KmIx/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-hwG5QJ/cffi/
请问怎么处理?

Who is online

Users browsing this forum: No registered users and 37 guests