pip gcc
pip
is a tool used to install Python modules from a central python repository. While using pip
command there may be some error like ffi.h gcc
.This error will look like below.
pip
是用于从中央python存储库安装Python模块的工具。 使用pip
命令时可能会出现类似ffi.h gcc
错误。该错误如下所示。
#include <ffi.h>
^
compilation terminated.
error: command 'gcc' failed with exit status 1
安装libffi-dev (Install libffi-dev)
This problem is related to the libffi
libraries. If libffi
development libraries are not installed we will get this error. To solve the issue install libffi-dev
on Debian/Ubuntu, libffi-devel
on Redhat/Centos/Fedora.
此问题与libffi
库有关。 如果未安装libffi
开发库,则会出现此错误。 要解决此问题,请在Debian / Ubuntu上安装libffi-dev
,在Redhat / Centos / Fedora上安装libffi-dev
libffi-devel
。
解决Ubuntu,Debian,Mint,Kali (Solve For Ubuntu, Debian, Mint, Kali)
We will install libffi-dev
package in deb based distributions.
我们将在基于deb的发行版中安装libffi-dev
软件包。
$ sudo apt install libffi-dev
解决Fedora,CentOS,RedHat (Solve For Fedora, CentOS, RedHat)
We will install libff-devel
package in rpm based distributions.
我们将在基于rpm的发行版中安装libff-devel
软件包。
$ sudo dnf install libffi-devel -y
Pip ffi.h Gcc错误信息 (Pip ffi.h Gcc Error Infografic)
pip gcc