继续使用mod_wsgi和apache获取致命的Python错误
我已将Python3.8.2与django 2.2兼容。它在本地运行良好,但当我尝试使用Apache和mod_wsgi 4.7.1部署它时,出现上述错误。有什么建议吗?我也有同样的问题。我现在找不到URL,但几周前,Django的一位开发人员断定这是由于mod_wsgi中的一个bug造成的,他正在研究它。继续使用mod_wsgi和apache获取致命的Python错误,python,django,apache,mod-wsgi,Python,Django,Apache,Mod Wsgi,我已将Python3.8.2与django 2.2兼容。它在本地运行良好,但当我尝试使用Apache和mod_wsgi 4.7.1部署它时,出现上述错误。有什么建议吗?我也有同样的问题。我现在找不到URL,但几周前,Django的一位开发人员断定这是由于mod_wsgi中的一个bug造成的,他正在研究它。 Current thread 0x00007f5aa48af880 (most recent call first): no Python frame Python path configur
Current thread 0x00007f5aa48af880 (most recent call first):
no Python frame
Python path configuration:
PYTHONHOME = (not set)
PYTHONPATH = (not set)
program name = /var/www/project/venu/bin/python
isolated = 0
environment = 1
user site = 1
import site = 1
sys._base_executable = /var/www/project/venu/bin/python
sys.base_prefix = '/opt/python3.8.2'
sys.base_exec_prefix = '/opt/python3.8.2'
sys.executable = '/var/www/project/venu/bin/python
sys.prefix = '/opt/python3.8.2'
sys.exec_prefix = '/opt/python3.8.2'
sys.path = [
'/opt/python3.8.2/lib/python38.zip',
'/opt/python3.8.2/lib/python3.8',
'/opt/python3.8.2/lib/lib-dynload',
]
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
Current thread (most recent call first)