美文网首页
Ubuntu 16.04安装django-compressor

Ubuntu 16.04安装django-compressor

作者: 字节码 | 来源:发表于2018-02-06 11:00 被阅读30次

Ubuntu 16.04安装django-compressor 报错:

In file included from rcssmin.c:18:0:
    _setup/include/cext.h:34:20: fatal error: Python.h: No such file or directory
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

错误的关键:_setup/include/cext.h:34:20: fatal error: Python.h: No such file or directory

解决方法:
先执行:

sudo apt-get install libpython3.5
sudo apt-get install python3-dev
sudo apt-get install libgsl0-dev

重新执行

pip install django-compressor

相关文章

网友评论

      本文标题:Ubuntu 16.04安装django-compressor

      本文链接:https://www.haomeiwen.com/subject/opxgzxtx.html