pip:ffi.h: No such file or directory"

背景

在Linux下使用pip安装ansible的时候,报错:ffi.h: No such file or directory"。

原因

Linux下缺少libffi和libffi-dev(el)

解决方法

Ubuntu

sudo apt install libffi libffi-dev -y

Centos

sudo yum -y install libffi libffi-devel 

这样就不会如上错误了。

博主:测试生财(一个不为996而996的测开码农)

座右铭:专注测试开发与自动化运维,努力读书思考写作,为内卷的人生奠定财务自由。

内容范畴:技术提升,职场杂谈,事业发展,阅读写作,投资理财,健康人生。

csdn:https://blog.csdn.net/ccgshigao

博客园:https://www.cnblogs.com/qa-freeroad/

51cto:https://blog.51cto.com/14900374

微信公众号:测试生财(定期分享独家内容和资源)


猜你喜欢

转载自blog.51cto.com/14900374/2646533