2

我正在尝试安装 pyheif 以在 Linux 服务器上使用 heic 文件。

pyheif:https ://pypi.org/project/pyheif/

Linux 库命令:

sudo apt-get install python3 python3-dev build-essential libssl-dev libffi-dev libxml2-dev libxslt1-dev zlib1g-dev python3-pip

sudo apt-get install libpcap-dev libpq-dev

apt install libffi6 libheif-dev libde265-dev  <-- I cannot find libffi. only libffi6 is available.

现在我尝试安装 pyheif

pip3 install pyheif

追溯:

...long lines ...
    build/temp.linux-x86_64-3.6/_libheif_cffi.c: In function ‘_cffi_d_heif_context_read_from_memory_without_copy’:
    build/temp.linux-x86_64-3.6/_libheif_cffi.c:2375:1: warning: control reaches end of non-void function [-Wreturn-type]
     }
     ^
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-pfesa6xd/pyheif/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-me_rlsh8-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-pfesa6xd/pyheif/

如何安装 pyheif?

我该如何解决这些追溯。

4

0 回答 0