While installing uwsgi for Django with Nginx pip install uwsgi
.
I got this error, “plugins/python/uwsgi_python.h:2:20: fatal error: Python.h: No such file or directory”.
Error: *** uWSGI compiling embedded plugins *** [gcc -pthread] plugins/python/python_plugin.o In file included from plugins/python/python_plugin.c:1:0: plugins/python/uwsgi_python.h:2:20: fatal error: Python.h: No such file or directory compilation terminated.
Solution: To fix this issue, install python-dev package.
sudo apt-get install python2.7-dev
Download link for reference : http://projects.unbit.it/downloads/uwsgi-1.9.12.tar.gz
Thanks I have looked everywhere but it didn’t solve. You are great. Appreciate your efforts.
You are welcome Pradip.
Regards
Sharad
Tanks helps me here 😀
Welcome Giovanni,
Glad to receive your feedback. It helps our other reader too.
Have a awesome days ahead.
Regards
Sharad