python2.7,Ubuntu14.04环境下pip安装插件,cffi插件出现一下错误解决办法。

来源:互联网 发布:淘宝模拟试衣间在哪了 编辑:程序博客网 时间:2024/06/13 21:47
1.更新系统
sudo apt-get update

2.更新软件

sudo apt-get dist-upgrade

出现

错误:

error: Python.h: No such file or directory #include <Python.h>                    ^compilation terminated.error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

解决办法:

sudo apt-get install python-dev

2.出现以下错误:

解决办法:

需要安装libffi-dev包,如果是ubuntu或者debian的话,运行:sudo apt-get install libffi-dev




0 0
原创粉丝点击