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
网友评论