Docker容器迁移后uWSGI运行报错"ImportError: No module named datetime"
*** Operational MODE: preforking ***
Traceback (most recent call last):
File "./my_django_app/wsgi.py", line 12, in <module>
from django.core.wsgi import get_wsgi_application
File "/home/admin/venv2/lib/python2.7/site-packages/django/__init__.py", line 3, in <module>
from django.utils.version import get_version
File "/home/admin/venv2/lib/python2.7/site-packages/django/utils/version.py", line 3, in <module>
import datetime
ImportError: No module named datetime
unable to load app 0 (mountpoint='') (callable not found or import error)
*** no app loaded. going in full dynamic mode **排查
python manage.py runserver 0:8000重建virtualenv环境
重新安装uwsgi
其他模块安装
参考
Last updated