When using uWsgi to build a django server, the Python version of anaconda is incorrect

when I install anaconda, on the server and run python, the prompt version number is 3.6.4
but when I use uwsgi, I report an error Internal Server Error
I read the prompt,-no python application found, check your startup logs for errors-

looked through log, and found that the python environment used is 2.7
how to adjust the configuration here? Use uwsgi when using anaconda

Thank you very much

Feb.28,2021

specify the full path when starting uwsgi, / usr/anaconda3/bin/uwsgi-- ini uwsgi.ini


solved the problem
previously used pip installation
idea has not been changed
use conda to install it, anaconda will set up other things.

Thank you for other answers

Menu