Django Apache and Virtualenv ImportError: No module named site

后端 未结 4 1109
野的像风
野的像风 2020-12-18 04:05

The error from apache after a 504 page

[info] mod_wsgi (pid=): Python home /var/venv/mybox.
[info] mod_wsgi (pid=): Initializing Python.
ImportError: No mod         


        
4条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-18 04:25

    On Ubuntu, if you want to use python3, you will have to uninstall libapache2-mod-wsgi-py and install libapache2-mod-wsgi-py3 instead if you obtained your mod_wsgi from the repository.

提交回复
热议问题