在Linux下安装Python执行make命令时报错“Failed to build these modules: _ctypes“

Posted 二木成林

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了在Linux下安装Python执行make命令时报错“Failed to build these modules: _ctypes“相关的知识,希望对你有一定的参考价值。

异常

INFO: Could not locate ffi libs and/or headers

The following modules found by detect_modules() in setup.py, have been
built by the Makefile instead, as configured by the Setup files:
_abc                  atexit                pwd                
time                                                           


Failed to build these modules:
_ctypes                                                        

running build_scripts
creating build/scripts-3.7

原因

缺少c_types模块

解决

安装libffi-devel依赖包即可,执行yum install libffi-devel命令进行安装。
再执行make命令即可成功编译了。

以上是关于在Linux下安装Python执行make命令时报错“Failed to build these modules: _ctypes“的主要内容,如果未能解决你的问题,请参考以下文章

(转)Linux安装SwfTools-0.9.2安装事,在执行make install时报错

安装libmcrypt-2.5.8 执行make时报没有规则可以创建目标“all”

linux下能够指定位置安装libevent,但是MAKE时报错,求解?

linux下安装qt make时报错有大牛知道是啥原因造成的吗

cygwin 下执行make怎么没反应

ubuntu下安装nodejs时报错make: *** [install] 错误 1谁能帮忙看一下