小编Niv*_*ral的帖子

尝试在 Raspberry Pi 上安装 docker-compose 时出现“ffi.h:没有这样的文件或目录”

我正在尝试在 Ubuntu 20.04(ARM Rasberry PI 4)上安装 docker-compose。但是当我按照Docker 文档的官方指南进行操作时,我无法使用标准路由,因为 GitHub 上没有适用于 Linux-aarch64 的版本,只有 x86。

但是当我通过pip install我尝试替代版本时收到错误

    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-2kn5p6q3/cffi/setup.py'"'"'; __file__='"'"'/tmp/pip-install-2kn5p6q3/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-u7mx6nfb/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/cffi
         cwd: /tmp/pip-install-2kn5p6q3/cffi/
    Complete output (36 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-aarch64-3.8
    creating build/lib.linux-aarch64-3.8/cffi
    copying cffi/recompiler.py -> build/lib.linux-aarch64-3.8/cffi
    copying cffi/vengine_gen.py -> build/lib.linux-aarch64-3.8/cffi
    copying cffi/commontypes.py -> …
Run Code Online (Sandbox Code Playgroud)

arm raspberrypi software-installation docker

5
推荐指数
1
解决办法
3674
查看次数

标签 统计

arm ×1

docker ×1

raspberrypi ×1

software-installation ×1