I had this problem and was stuck for hours.
Python2
My issue is different than the answer listed, make sure you have plugins = python
in your uwsgi .ini
file and you install the uwsgi python
plugin:
sudo apt-get install uwsgi-plugin-python
Python3
If you're using Python3, use the same approach and do:
sudo apt-get install uwsgi-plugin-python3
then add plugins = python3
inside your uwsgi .ini
file.
After I did the above my application worked. Obviously this is for python
projects, but a similar approach is required for other projects.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…