uwsgi 的 ImportError: No module named 'encodings' 错误

在做的项目使用Django做后端,发现使用python3 manage.py runserver时能够正常启动,使用uwsgi时报错

Fatal Python error: Py_Initialize: Unable to get the locale encoding
ImportError: No module named 'encodings'

linux上的python版本是2.7,用virtualenv创建虚拟环境目录是python2.7的,你安装了python3使用virtualenv是用python2.7的,只能重新安装

posted @ 2019-04-02 21:48  等待の喵  阅读(3559)  评论(0编辑  收藏  举报