Install failed on Raspbian 64 Bit
See original GitHub issueTried to install on my Raspberry Pi 4 running Raspbian 64 bit.
Complete output from command /home/pi/chiadog/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-85rdwdul/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-g75sangs --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
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: invalid command 'bdist_wheel'
----------------------------------------
Failed building wheel for cffi
Running setup.py clean for cffi
Failed to build cffi
Installing collected packages: setuptools, wheel, pycparser, cffi, semantic-version, toml, setuptools-rust
Running setup.py install for cffi: started
Running setup.py install for cffi: finished with status 'error'
Complete output from command /home/pi/chiadog/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-85rdwdul/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-k2ncf00a/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-0wwhbf2l --compile --install-headers /home/pi/chiadog/venv/include/site/python3.7/cffi:
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.linux-aarch64-3.7
creating build/lib.linux-aarch64-3.7/cffi
copying cffi/backend_ctypes.py -> build/lib.linux-aarch64-3.7/cffi
copying cffi/commontypes.py -> build/lib.linux-aarch64-3.7/cffi
copying cffi/ffiplatform.py -> build/lib.linux-aarch64-3.7/cffi
copying cffi/setuptools_ext.py -> build/lib.linux-aarch64-3.7/cffi
copying cffi/vengine_gen.py -> build/lib.linux-aarch64-3.7/cffi
copying cffi/cffi_opcode.py -> build/lib.linux-aarch64-3.7/cffi
copying cffi/pkgconfig.py -> build/lib.linux-aarch64-3.7/cffi
copying cffi/error.py -> build/lib.linux-aarch64-3.7/cffi
copying cffi/recompiler.py -> build/lib.linux-aarch64-3.7/cffi
copying cffi/vengine_cpy.py -> build/lib.linux-aarch64-3.7/cffi
copying cffi/cparser.py -> build/lib.linux-aarch64-3.7/cffi
copying cffi/model.py -> build/lib.linux-aarch64-3.7/cffi
copying cffi/api.py -> build/lib.linux-aarch64-3.7/cffi
copying cffi/lock.py -> build/lib.linux-aarch64-3.7/cffi
copying cffi/verifier.py -> build/lib.linux-aarch64-3.7/cffi
copying cffi/__init__.py -> build/lib.linux-aarch64-3.7/cffi
copying cffi/_cffi_include.h -> build/lib.linux-aarch64-3.7/cffi
copying cffi/parse_c_type.h -> build/lib.linux-aarch64-3.7/cffi
copying cffi/_embedding.h -> build/lib.linux-aarch64-3.7/cffi
copying cffi/_cffi_errors.h -> build/lib.linux-aarch64-3.7/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.linux-aarch64-3.7
creating build/temp.linux-aarch64-3.7/c
aarch64-linux-gnu-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/home/pi/chiadog/venv/include -I/usr/include/python3.7m -c c/_cffi_backend.c -o build/temp.linux-aarch64-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 'aarch64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/home/pi/chiadog/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-85rdwdul/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-k2ncf00a/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-0wwhbf2l --compile --install-headers /home/pi/chiadog/venv/include/site/python3.7/cffi" failed with error code 1 in /tmp/pip-install-85rdwdul/cffi/
----------------------------------------
Command "/home/pi/chiadog/venv/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-0wwhbf2l --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple --extra-index-url https://www.piwheels.org/simple -- setuptools>=40.6.0 wheel "cffi>=1.12; platform_python_implementation != 'PyPy'" setuptools-rust>=0.11.4" failed with error code 1 in None
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Raspberry Pi OS (64 bit) fails to download
Re: Raspberry Pi OS (64 bit) fails to download I noticed the LED light on the SD card reader was not turning on....
Read more >Raspberry Pi 64bit Raspbian fails to install · Issue #424 - GitHub
The installation fails on a 64bit raspbian installation. The reason in my opinion is that the binary is 32bit and therefore cannot be ......
Read more >Install fails on Raspberry Pi 4 Model B (64 bit)
Calibre newbie. Trying to install calibre-6.6.1-arm64.txz on Raspberry Pi 4 Model B 64 bit. Install fails with:.
Read more >pip install error with Raspberry OS 64 bit - Stack Overflow
Try: sudo apt-get install python-pip libglib2.0-dev. Then: sudo pip install bluepy. If you get the same error, you may need to install ......
Read more >Error install on Raspberry Pi OS Lite 64 bits : r/pivpn - Reddit
Error install on Raspberry Pi OS Lite 64 bits. Hey,. I switch omv5 on 32bits with omv6 64bits on the same RaspberryPi 4B...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Installing
libffi6worked! I had to make surepipwas running latest version too.I’m up and running now.
Thank you!
I suggest trying to install
libffi. Something like:sudo apt-get install libffi7 libffi-devorlibffi6if your repository doesn’t have 7. It’s a requirement for Paramiko. Usually available by default on Ubuntu.