运行python manage.py runserver报错: ImportError: No module named tablib
来源:14-2 uwsgi安装和启动, nginx的虚拟主机配置
qq_上官清偌_0
2018-07-15
root@iZbp1berl2oy3e3vt5476fZ:/mnt/MxOnline# python manage.py runserver Unhandled exception in thread started by <function wrapper at 0x7f22d0e0a1b8> Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django/utils/autoreload.py", line 226, in wrapper fn(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/django/core/management/commands/runserver.py", line 109, in inner_run autoreload.raise_last_exception() File "/usr/local/lib/python2.7/dist-packages/django/utils/autoreload.py", line 249, in raise_last_exception six.reraise(*_exception) File "/usr/local/lib/python2.7/dist-packages/django/utils/autoreload.py", line 226, in wrapper fn(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/django/__init__.py", line 18, in setup apps.populate(settings.INSTALLED_APPS) File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 115, in populate app_config.ready() File "/mnt/MxOnline/extra_apps/xadmin/apps.py", line 14, in ready self.module.autodiscover() File "/mnt/MxOnline/extra_apps/xadmin/__init__.py", line 49, in autodiscover register_builtin_plugins(site) File "/mnt/MxOnline/extra_apps/xadmin/plugins/__init__.py", line 43, in register_builtin_plugins [import_module('xadmin.plugins.%s' % plugin) for plugin in PLUGINS if plugin not in exclude_plugins] File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/mnt/MxOnline/extra_apps/xadmin/plugins/importexport.py", line 48, in <module> from import_export.admin import DEFAULT_FORMATS, SKIP_ADMIN_LOG, TMP_STORAGE_CLASS File "/usr/local/lib/python2.7/dist-packages/import_export/admin.py", line 31, in <module> from .resources import ( File "/usr/local/lib/python2.7/dist-packages/import_export/resources.py", line 4, in <module> import tablib ImportError: No module named tablib
写回答
1回答
-
pip uninstall django-import-export 然后 pip install django-import-export
122018-07-18
相似问题