Django ImportError:没有命名模块,尽管它已经在我的python搜索路径中

我已经解决了很长时间了 .

我打印像这样 .

python2.7 -c "import sys; print sys.path"

我直接在那里看到了我的模块 .

['','/ home / khantthulinn / lib / python2.7 /pip-8.1.2-py2.7.egg','/ home / khantthulinn / lib / python2.7','/ home / khantthulinn / lib /python2.7','/ usr / lib64 / python27.zip','/ usr / lib64 / python2.7','/ usr / lib64 / python2.7 / plat-linux2','/ usr / lib64 / python2 .7 / lib-tk','/ usr / lib64 / python2.7 / lib-old','/ usr / lib64 / python2.7 / lib-dynload','/ home / khantthulinn /.local / lib / python2 .7 / site-packages','/ usr / lib64 / python2.7 / site-package','/ usr / lib64 / python2.7 / site-package / PIL','/ usr / lib64 / python2.7 / site-packages / geos','/ usr / lib / python2.7 / site-package']

但我总是得到这个错误 . 我该如何解决?

Traceback启动的线程中未处理的异常(最近一次调用最后一次):文件“/home/khantthulinn/webapps/mmspeaker/lib/python2.7/Django-1.8.14-py2.7.egg/django/utils/autoreload . py“,第229行,在包装器fn(* args,** kwargs)文件”/home/khantthulinn/webapps/mmspeaker/lib/python2.7/Django-1.8.14-py2.7.egg/django/core/ management / commands / runserver.py“,第107行,在inner_run中autoreload.raise_last_exception()文件”/home/khantthulinn/webapps/mmspeaker/lib/python2.7/Django-1.8.14-py2.7.egg/django/ utils / autoreload.py“,第252行,在raise_last_exception six.reraise(* _ exception)文件”/home/khantthulinn/webapps/mmspeaker/lib/python2.7/Django-1.8.14-py2.7.egg/django/ utils / autoreload.py“,第229行,在包装器fn(* args,** kwargs)文件”/home/khantthulinn/webapps/mmspeaker/lib/python2.7/Django-1.8.14-py2.7.egg/ django / init.py“,第18行,在安装程序apps.populate(settings.INSTALLED_APPS)文件”/home/khantthulinn/webapps/mmspeaker/lib/python2.7/Django-1.8.14-py2.7.egg/django /apps/registry.py“,行85,在填充app_config = AppConfig.create(entry)文件“/home/khantthulinn/webapps/mmspeaker/lib/python2.7/Django-1.8.14-py2.7.egg/django/apps/config.py”,第86行,在create module = import_module(entry)文件“/usr/lib64/python2.7/importlib/init.py”,第37行,在import_module中导入(名称)ImportError:没有名为push_notifications的模块

回答(0)