uwsgi报错
来源:12-15 Nginx uWSGI Daphne Supervisor Django生产环境部署
李嘉图principal
2019-10-17
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
Python version: 3.7.2 (default, May 7 2019, 11:20:44) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)]
Set PythonHome to /usr/local/python3/bin/
Fatal Python error: initfsencoding: Unable to get the locale encoding
ModuleNotFoundError: No module named ‘encodings’
网上说要用虚拟环境解决,老师帮忙看下,谢谢
写回答
1回答
-
Jack
2019-10-18
试试这个行吗 https://stackoverflow.com/questions/38132755/importerror-no-module-named-encodings
rm -rf venv
virtualenv -p /usr/bin/python3 venv/
source venv/bin/activate
pip install -r requirements.txt00
相似问题