一,报错信息:
启动uwsgi时不能正常启动,日志文件中报错如下
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'
二,问题原因
!!! Python Home is not a directory: /data/pyton/deployproj/venv/ !!!
Set PythonHome to /data/pyton/deployproj/venv/
原来是目录不存在,写配置文件时手哆嗦少写了一个h
正确的目录是: /data/python/deployproj/venv/
三,解决
修改配置文件中的目录为真实存在的,
再次启动uwsgi,启动成功