Skip to content

While installing Flask the error message "No package 'libffi' found" is reported. #3

Description

@rwbr
Installing Flask web server...

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting flask
  Downloading https://files.pythonhosted.org/packages/f2/28/2a03252dfb9ebf377f40fba6a7841b47083260bf8bd8e737b0c6952df83f/Flask-1.1.2-py2.py3-none-any.whl (94kB)
    100% |████████████████████████████████| 102kB 429kB/s 
Collecting pyopenssl
  Downloading https://files.pythonhosted.org/packages/9e/de/f8342b68fa9e981d348039954657bdf681b2ab93de27443be51865ffa310/pyOpenSSL-19.1.0-py2.py3-none-any.whl (53kB)
    100% |████████████████████████████████| 61kB 491kB/s 
Collecting click>=5.1 (from flask)
  Downloading https://files.pythonhosted.org/packages/d2/3d/fa76db83bf75c4f8d338c2fd15c8d33fdd7ad23a9b5e57eb6c5de26b430e/click-7.1.2-py2.py3-none-any.whl (82kB)
    100% |████████████████████████████████| 92kB 513kB/s 
Collecting Werkzeug>=0.15 (from flask)
  Downloading https://files.pythonhosted.org/packages/cc/94/5f7079a0e00bd6863ef8f1da638721e9da21e5bacee597595b318f71d62e/Werkzeug-1.0.1-py2.py3-none-any.whl (298kB)
    100% |████████████████████████████████| 307kB 260kB/s 
Collecting Jinja2>=2.10.1 (from flask)
  Downloading https://files.pythonhosted.org/packages/30/9e/f663a2aa66a09d838042ae1a2c5659828bb9b41ea3a6efa20a20fd92b121/Jinja2-2.11.2-py2.py3-none-any.whl (125kB)
    100% |████████████████████████████████| 133kB 440kB/s 
Collecting itsdangerous>=0.24 (from flask)
  Downloading https://files.pythonhosted.org/packages/76/ae/44b03b253d6fade317f32c24d100b3b35c2239807046a4c953c7b89fa49e/itsdangerous-1.1.0-py2.py3-none-any.whl
Collecting cryptography>=2.8 (from pyopenssl)
  Downloading https://www.piwheels.org/simple/cryptography/cryptography-3.1-cp37-cp37m-linux_armv6l.whl (765kB)
    100% |████████████████████████████████| 768kB 113kB/s 
Requirement already satisfied: six>=1.5.2 in /usr/lib/python3/dist-packages (from pyopenssl) (1.12.0)
Collecting MarkupSafe>=0.23 (from Jinja2>=2.10.1->flask)
  Downloading https://www.piwheels.org/simple/markupsafe/MarkupSafe-1.1.1-cp37-cp37m-linux_armv6l.whl
Collecting cffi!=1.11.3,>=1.8 (from cryptography>=2.8->pyopenssl)
  Downloading https://files.pythonhosted.org/packages/f7/09/88bbe20b76ca76be052c366fe77aa5e3cd6e5f932766e5597fecdd95b2a8/cffi-1.14.2.tar.gz (470kB)
    100% |████████████████████████████████| 471kB 174kB/s 
Collecting pycparser (from cffi!=1.11.3,>=1.8->cryptography>=2.8->pyopenssl)
  Downloading https://files.pythonhosted.org/packages/ae/e7/d9c3a176ca4b02024debf82342dab36efadfc5776f9c8db077e8f6e71821/pycparser-2.20-py2.py3-none-any.whl (112kB)
    100% |████████████████████████████████| 112kB 521kB/s 
Building wheels for collected packages: cffi
  Running setup.py bdist_wheel for cffi ... error
  Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-2syp6qys/cffi/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-7kz29q_q --python-tag cp37:
  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 bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-armv6l-3.7
  creating build/lib.linux-armv6l-3.7/cffi
  copying cffi/pkgconfig.py -> build/lib.linux-armv6l-3.7/cffi
  copying cffi/vengine_gen.py -> build/lib.linux-armv6l-3.7/cffi
  copying cffi/ffiplatform.py -> build/lib.linux-armv6l-3.7/cffi
  copying cffi/verifier.py -> build/lib.linux-armv6l-3.7/cffi
  copying cffi/backend_ctypes.py -> build/lib.linux-armv6l-3.7/cffi
  copying cffi/vengine_cpy.py -> build/lib.linux-armv6l-3.7/cffi
  copying cffi/__init__.py -> build/lib.linux-armv6l-3.7/cffi
  copying cffi/commontypes.py -> build/lib.linux-armv6l-3.7/cffi
  copying cffi/lock.py -> build/lib.linux-armv6l-3.7/cffi
  copying cffi/cparser.py -> build/lib.linux-armv6l-3.7/cffi
  copying cffi/setuptools_ext.py -> build/lib.linux-armv6l-3.7/cffi
  copying cffi/recompiler.py -> build/lib.linux-armv6l-3.7/cffi
  copying cffi/model.py -> build/lib.linux-armv6l-3.7/cffi
  copying cffi/error.py -> build/lib.linux-armv6l-3.7/cffi
  copying cffi/cffi_opcode.py -> build/lib.linux-armv6l-3.7/cffi
  copying cffi/api.py -> build/lib.linux-armv6l-3.7/cffi
  copying cffi/_cffi_include.h -> build/lib.linux-armv6l-3.7/cffi
  copying cffi/parse_c_type.h -> build/lib.linux-armv6l-3.7/cffi
  copying cffi/_embedding.h -> build/lib.linux-armv6l-3.7/cffi
  copying cffi/_cffi_errors.h -> build/lib.linux-armv6l-3.7/cffi
  running build_ext
  building '_cffi_backend' extension
  creating build/temp.linux-armv6l-3.7
  creating build/temp.linux-armv6l-3.7/c
  arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python3.7m -c c/_cffi_backend.c -o build/temp.linux-armv6l-3.7/c/_cffi_backend.o
  c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory
   #include <ffi.h>
            ^~~~~~~
  compilation terminated.
  error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
  
  ----------------------------------------
  Failed building wheel for cffi
  Running setup.py clean for cffi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions