Django / Apache / mod_wsgi: No module named importlib

前端 未结 1 1435
孤街浪徒
孤街浪徒 2020-12-19 02:11

After working with django\'s dev server for the past two months, the time finally came to move to apache + mod_wsgi.

The problem is when I go to my site (let\'s cal

相关标签:
1条回答
  • 2020-12-19 02:48

    What version of Python was mod_wsgi compiled against? Looks like you might have multiple Python installations on the system and your virtual environment is using Python 2.7, but your mod_wsgi is compiled against 2.6.

    Am basing this guess on fact that importlib was only added in Python 2.7, so if mod_wsgi was compiled for 2.6 and using that base installation, then would fail to find importlib.

    Run checks:

    http://code.google.com/p/modwsgi/wiki/CheckingYourInstallation#Python_Shared_Library http://code.google.com/p/modwsgi/wiki/CheckingYourInstallation#Python_Installation_In_Use

    0 讨论(0)
提交回复
热议问题